diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-08-18 19:45:27 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-08-18 19:45:27 -0300 |
commit | 6271ac8abcbc5b09ff1c6ed6d33245a2243cd0d9 (patch) | |
tree | ee19d955b57a9cac5d7fd6b70dd75ea724e5352d | |
parent | 021867977988389917bf0bb3dbaa372b5057f93a (diff) | |
download | puppet-user-6271ac8abcbc5b09ff1c6ed6d33245a2243cd0d9.tar.gz puppet-user-6271ac8abcbc5b09ff1c6ed6d33245a2243cd0d9.tar.bz2 |
Parameter managehome now can specify a symlink
-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' { |