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 view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/vByKYwcuRhoJ.
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.

Reply via email to