diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/vhost/webdir.pp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/vhost/webdir.pp b/manifests/vhost/webdir.pp index a6c6b2f..a80f0f8 100644 --- a/manifests/vhost/webdir.pp +++ b/manifests/vhost/webdir.pp @@ -80,7 +80,11 @@ define apache::vhost::webdir( } case $ensure { absent: { - file{[ "$real_path", "${real_path}/private", "$documentroot", "$logdir" ]: + $managed_directories = [ "$real_path", "${real_path}/private", "$logdir" ] + if $manage_docroot { + $managed_directories += [ "$documentroot" ] + } + file{$managed_directories: ensure => absent, purge => true, recurse => true, |