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