Skip to content

Additional groups #29

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ZeroPointEnergy
Copy link

There is a problem with the additional groups when the group itself is already defined somewhere else, for example with the accounts module and the member list is authoritative (auth_membership => true). In this case the user resource and the group resource will fight over the members list.

The user resource will append the user to the list and in the next run the group resource will remove it again to make sure the list only contains the members specified.

This PR extends the PR #27 with some resource collectors that make sure the users are appended to the group resources if they exist.

ruriky and others added 3 commits November 13, 2017 07:42
User can define supplementary groups for instance and fenced users.
Multiple groups can be defined as an array.
@ZeroPointEnergy
Copy link
Author

Looks like the test for puppet 3 are failing becuase I used an iterator. Is puppet 3 support still desired? Could probably relocate the the collector into a define and create instances with the groups array to get the same effect. But that would be a bit ugly compared to the iterator.

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.

2 participants