summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-31 11:26:45 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-31 11:26:45 -0300
commit64eb598c4d35ab031c164f7e43fc435877f2ebcf (patch)
treed8e73cd87cf4de9bbd16baae28c0dde7c92fb05a /manifests
parent52f7c6aa99e34f69c34360124605e48b63ec4e55 (diff)
downloadpuppet-user-64eb598c4d35ab031c164f7e43fc435877f2ebcf.tar.gz
puppet-user-64eb598c4d35ab031c164f7e43fc435877f2ebcf.tar.bz2
Cleanup uid handling
Diffstat (limited to 'manifests')
-rw-r--r--manifests/manage.pp10
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 },
}