sous-chefs / rundeck

Development repository for the rundeck cookbook
https://supermarket.chef.io/cookbooks/rundeck
Apache License 2.0
46 stars 68 forks source link

Please provide an example of using hash for admin policy #236

Closed gangadhar01a closed 5 years ago

gangadhar01a commented 5 years ago

Hi,

It will be nice if you can provide few examples of how a user can use the hash inside the recipe (server_install). I have been trying to set admin policy using, and provided the hash value as per the documentation, which is throwing an error

"NoMethodError

undefined method `each' for "adminpolocy":String"

I request to update the documentation with some examples.

Thank you!

PowerSchill commented 5 years ago

I have an example in the unit tests. Look at https://github.com/sous-chefs/rundeck/blob/master/test/cookbooks/test/attributes/default.rb#L1 for an example.

gangadhar01a commented 5 years ago

Thank you. It worked.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.