This commit is contained in:
mh 2011-05-24 22:11:31 +02:00
parent ac2b5fe05a
commit c03dee84d0

View file

@ -15,7 +15,8 @@ define user::groups::manage_user(
}
if ($ensure == 'present'){
Augeas["manage_${real_user}_in_group_${group}"]{
changes => [ "set ${group}/user[last()+1] ${real_user}" ],
changes => [ "ins user after ${group}/*[self::gid or self::user][last()]",
"set ${group}/user[last()] ${real_user}" ],
onlyif => "match ${group}/*[../user='${real_user}'] size == 0"
}
} else {