fixed some logic

This commit is contained in:
mh 2009-03-12 23:33:08 +00:00
parent 8c4350ecab
commit aa9eb617cd

View file

@ -104,7 +104,7 @@ define user::managed(
} }
if $gid != 'absent' { if $gid != 'absent' {
if $gid != 'uid' { if $gid == 'uid' {
if $uid != 'absent' { if $uid != 'absent' {
$real_gid = $uid $real_gid = $uid
} }
@ -120,13 +120,11 @@ define user::managed(
if $name != 'root' { if $name != 'root' {
if $uid == 'absent' { if $uid == 'absent' {
if $manage_group { if $manage_group and ($ensure == 'absent') {
if $ensure == 'absent' {
group{$name: group{$name:
ensure => absent, ensure => absent,
} }
} }
}
} else { } else {
if $manage_group { if $manage_group {
group { $name: group { $name: