diff --git a/manifests/users.pp b/manifests/users.pp index 859d0f9..9f4da15 100644 --- a/manifests/users.pp +++ b/manifests/users.pp @@ -42,13 +42,18 @@ } } - if $absent_users { + if $absent_users and $absent_groups { user { $absent_users: ensure => 'absent', + } -> + group { $absent_groups: + ensure => 'absent' } - } - - if $absent_groups { + } elsif $absent_users { + user { $absent_users: + ensure => 'absent', + } + } elsif $absent_groups { group { $absent_groups: ensure => 'absent' }