Skip to content
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

Merged
merged 2 commits into from
Apr 4, 2014

Conversation

jwennerberg
Copy link
Contributor

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.

@Phil-Friderici
Copy link
Contributor

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.

@ghoneycutt
Copy link
Contributor

Suggest defaulting to true now since the functionality is all new.

@Phil-Friderici
Copy link
Contributor

If you have worked around this missing feature before, you'll end up with double entries if this is set to true.

@ghoneycutt
Copy link
Contributor

Ah, right on. I thought that the users_allow was also being added in this commit.

Nevermind me :)

@Phil-Friderici
Copy link
Contributor

Thanks for commenting :)

@jwennerberg
Copy link
Contributor Author

README updated

@anders-larsson
Copy link
Contributor

I've been looking at this functionality for quite some time but haven't had time to do anything about it. Thanks!
My only though it regarding the variable name. "$users_allow_hiera_array" doesn't really describe what it does in my opinion. Maybe it should include merge or something similar?

Tested it on a RHEL6 and SLE11 and it worked well.

@Phil-Friderici
Copy link
Contributor

In sudoers (PUA) module I named that something like 'hiera_merge', do you think this would be more self explaining ?

@jwennerberg
Copy link
Contributor Author

users_allow_hiera_merge then perhaps? because we might want to add this functionality for user.override entries as well?

@Phil-Friderici
Copy link
Contributor

users_allow_hiera_merge sounds very self explaing 👍

@anders-larsson
Copy link
Contributor

Yes that sounds like a good name.

jwennerberg pushed a commit that referenced this pull request Apr 4, 2014
@jwennerberg jwennerberg merged commit 2ca9d12 into Ericsson:master Apr 4, 2014
@jwennerberg jwennerberg deleted the users_allow_hiera_merge branch April 4, 2014 13:50
@jwennerberg jwennerberg restored the users_allow_hiera_merge branch May 5, 2014 12:30
@jwennerberg jwennerberg deleted the users_allow_hiera_merge branch May 16, 2014 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants