improve some resource management

This commit is contained in:
mh 2011-02-15 00:34:58 +01:00
parent 3d913534ce
commit a7513ca689

View file

@ -73,15 +73,16 @@ define user::managed(
if $managehome {
file{$real_homedir: }
if $ensure == 'absent' {
file{"$real_homedir":
File[$real_homedir]{
ensure => absent,
purge => true,
force => true,
recurse => true,
}
} else {
file{"$real_homedir":
File[$real_homedir]{
ensure => directory,
require => User[$name],
owner => $name, mode => $homedir_mode;