diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-03-31 11:26:45 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-03-31 11:26:45 -0300 |
commit | 64eb598c4d35ab031c164f7e43fc435877f2ebcf (patch) | |
tree | d8e73cd87cf4de9bbd16baae28c0dde7c92fb05a /manifests | |
parent | 52f7c6aa99e34f69c34360124605e48b63ec4e55 (diff) | |
download | puppet-user-64eb598c4d35ab031c164f7e43fc435877f2ebcf.tar.gz puppet-user-64eb598c4d35ab031c164f7e43fc435877f2ebcf.tar.bz2 |
Cleanup uid handling
Diffstat (limited to 'manifests')
-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 }, } |