fix order of group removing

if we remove a user with a present uid/gid, we need to get the
order right as we do be removing it withou any uid, gid available.
This commit is contained in:
mh 2010-07-05 20:51:49 +02:00
parent 33b7ff7bea
commit ac97d73cb0

View file

@ -153,6 +153,20 @@ define user::managed(
gid => $real_gid,
}
}
if $ensure == 'absent' {
case $operatingsystem {
OpenBSD: {
Group[$name]{
before => User[$name],
}
}
default: {
Group[$name]{
require => User[$name],
}
}
}
}
}
}
}