summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/manage.pp10
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/manage.pp b/manifests/manage.pp
index 76becf3..6cf9807 100644
--- a/manifests/manage.pp
+++ b/manifests/manage.pp
@@ -54,16 +54,16 @@ define user::manage(
if $managehome == true {
if $ensure == 'absent' {
file{"$real_homedir":
- ensure => absent,
- purge => true,
- force => true,
+ ensure => absent,
+ purge => true,
+ force => true,
recurse => true,
}
} else {
file{"$real_homedir":
- ensure => directory,
+ ensure => directory,
require => User[$name],
- owner => $name, mode => $homedir_mode;
+ owner => $name, mode => $homedir_mode;
}
case $gid {
'absent','uid': {