diff options
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 954d224..55a803b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -54,7 +54,7 @@ class user { default => $shell, } - if $managehome { + if $managehome == true { if $ensure == 'absent' { file{"$real_homedir": ensure => absent, @@ -81,6 +81,13 @@ class user { } } } + } else { + if $managehome != false { + file{ "$real_homedir": + ensure => $managehome, + require => User[$name], + } + } } if $uid != 'absent' { |