From: Silvio Rhatto Date: Sat, 18 Aug 2012 22:45:27 +0000 (-0300) Subject: Parameter managehome now can specify a symlink X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6271ac8abcbc5b09ff1c6ed6d33245a2243cd0d9;p=puppet-user.git Parameter managehome now can specify a symlink --- 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' {