Issue #7241 has been updated by Stefan Schulte.
Nigel Kersten wrote:
> I don't think we need to be hung up on namevars at all. Sure, we could use
> something multi-var like that, but I also really like:
>
<pre>
groupmembership { 'ensure_testuser_in_testgroup':
ensure => present,
member => "testuser",
group => "testgroup",
}
</pre>
ok, but if testuser is not in testgroup, what exactly is out of sync here? Is
member out of sync (it is from the group's point of view) or is group out of
sync (it is from the user's point of view)?
I just fear that the number of resources I have to specify will explode when I
want to specify a user which is in a lot of groups. I also prefer one message
`User[foo]/groups changed group1,group2,group3 to group4,group5,group6)` over
six messages about absent/present groupmembership resources but that is of
course just my opinion.
You may also have problems when another resource requires your user because
this resource cannot be sure that the user is completly set (or you have to
manually require all the groupmembership resources as well)
As a sidenode: How do you ensure that you dont specify two conflicting
memberships (if you prefer arbitrary titles)?
----------------------------------------
Feature #7241: Group membership should be a type of its own.
https://projects.puppetlabs.com/issues/7241
Author: Nigel Kersten
Status: Accepted
Priority: Normal
Assignee:
Category:
Target version: Telly
Affected Puppet version:
Keywords:
Branch:
It's very difficult right now to express declarative statements like:
* Ensure this user is not in this group, leave it alone otherwise
* Ensure this user is in this group without defining the user, leave it alone
otherwise.
I propose that we move group membership to a type of its own. That would also
allow us to abstract away the differences between different platforms, some of
which consider membership to be an attribute of the group, some of which
consider it to be an attribute of the user.
It would allow us to remove all the "authoritative" settings for user/group
membership, as they would move to this type instead.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.