diff --git a/manifests/defines.pp b/manifests/defines.pp index 6ff7cd3..ff6adf1 100644 --- a/manifests/defines.pp +++ b/manifests/defines.pp @@ -121,9 +121,13 @@ define user::managed( if $name != 'root' { if $uid == 'absent' { if $manage_group and ($ensure == 'absent') { - group{$name: + case $operatingsystem { + 'OpenBSD': { + group{$name: ensure => absent, + } } + } } } else { if $manage_group {