Hi Paul, thanks you for your suggestion.
I wrote key_membership => inclusive in user type, but the groups were
not updated.
Having user's membership into array variable $groups i did :
user { $username:
...
key_membership => inclusive,
groups => [$groups]
}
am i missing something ?
I have puppet version 2.7.1.
Regards,
eduardo.
On 23 jul, 02:05, Paul Tötterman <[email protected]> wrote:
> Hi eduardo,
>
> > Is there another way to do it ?.
>
> user { "$username":
> ensure => present,
> key_membership => inclusive,
> groups => ['all', 'groups', 'except', '$group'], # full listing of all
> groups $username belongs to
>
> }
>
> or
>
> group { "$group",
> ensure => present,
> attribute_membership => inclusive,
> members => ['all', 'members', 'except', '$username'], # full listing of
> all members of $group
>
> }
>
> Cheers,
> Paul
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en.