on linux systems we don't need to remove the primary group of a user
This commit is contained in:
parent
aa9eb617cd
commit
2bc082c505
1 changed files with 5 additions and 1 deletions
|
@ -121,9 +121,13 @@ define user::managed(
|
||||||
if $name != 'root' {
|
if $name != 'root' {
|
||||||
if $uid == 'absent' {
|
if $uid == 'absent' {
|
||||||
if $manage_group and ($ensure == 'absent') {
|
if $manage_group and ($ensure == 'absent') {
|
||||||
group{$name:
|
case $operatingsystem {
|
||||||
|
'OpenBSD': {
|
||||||
|
group{$name:
|
||||||
ensure => absent,
|
ensure => absent,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if $manage_group {
|
if $manage_group {
|
||||||
|
|
Loading…
Reference in a new issue