-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support hiera_array for users.allow #25
Support hiera_array for users.allow #25
Conversation
I have tested this successfully on RH 5.9. Works like expected :) 👍 Please add something to the README.md like: users_allow_hiera_array ---------------------- Boolean to merges all found instances of vas::users_allow_entries in Hiera. This is useful for specifying user_allow entries at different levels of the hierarchy and having them all included in the catalog. - *Default*: false Optional: This will default to 'true' in future versions. |
Suggest defaulting to true now since the functionality is all new. |
If you have worked around this missing feature before, you'll end up with double entries if this is set to true. |
Ah, right on. I thought that the users_allow was also being added in this commit. Nevermind me :) |
Thanks for commenting :) |
README updated |
I've been looking at this functionality for quite some time but haven't had time to do anything about it. Thanks! Tested it on a RHEL6 and SLE11 and it worked well. |
In sudoers (PUA) module I named that something like 'hiera_merge', do you think this would be more self explaining ? |
users_allow_hiera_merge then perhaps? because we might want to add this functionality for user.override entries as well? |
users_allow_hiera_merge sounds very self explaing 👍 |
Yes that sounds like a good name. |
Support hiera_array for users.allow
Add support for merging users.allow entries in Hiera.
No spec-test for this at the moment. Will refactor the spec-tests to incorporate tests for hiera.