summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-07-05 20:51:49 +0200
committermh <mh@immerda.ch>2010-07-05 20:51:49 +0200
commitac97d73cb01c89e19655332c6077f39ab8dbe809 (patch)
tree1393d376336681d5dc438351967046d96932fb4b
parent33b7ff7beae92c09a9462ed048936cc68ba109c4 (diff)
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.
-rw-r--r--manifests/managed.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/managed.pp b/manifests/managed.pp
index b7872dd..59fc1bf 100644
--- a/manifests/managed.pp
+++ b/manifests/managed.pp
@@ -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],
+ }
+ }
+ }
+ }
}
}
}