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:
parent
33b7ff7bea
commit
ac97d73cb0
1 changed files with 14 additions and 0 deletions
|
@ -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],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue