Please provide an example of using hash for admin policy
Closed this issue · 3 comments
gangadhar01a commented
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
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
Thank you.
It worked.
lock commented
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.