fixed some logic
This commit is contained in:
parent
8c4350ecab
commit
aa9eb617cd
1 changed files with 4 additions and 6 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue