Skip to content

Commit

Permalink
Merge pull request #42 from jlambert121/ug_ordering
Browse files Browse the repository at this point in the history
ensure users are removed before groups
  • Loading branch information
jlambert121 committed Dec 27, 2014
2 parents 0b484a2 + d1b0bf2 commit 062a742
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions manifests/users.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down

0 comments on commit 062a742

Please sign in to comment.