diff options
-rw-r--r-- | manifests/manage.pp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/manifests/manage.pp b/manifests/manage.pp index 240ca2f..76becf3 100644 --- a/manifests/manage.pp +++ b/manifests/manage.pp @@ -8,7 +8,7 @@ define user::manage( $password, $ensure = present, - $uid = 'absent', + $uid = false, $gid = 'uid', $groups = [], $managehome = true, @@ -109,12 +109,6 @@ define user::manage( } } - if $uid != 'absent' { - $real_uid = $uid - } else { - $real_uid = false - } - if $gid != 'absent' { if $gid == 'uid' { if $uid != 'absent' { @@ -140,7 +134,7 @@ define user::manage( groups => $real_groups, membership => $membership, password => $password, - uid => $real_uid ? { false => undef, default => $real_uid }, + uid => $uid ? { false => undef, default => $uid }, gid => $real_gid ? { false => undef, default => $real_gid }, } |