diff --git a/manifests/vhost.pp b/manifests/vhost.pp index 762aa28fb..7ef2ee8a2 100644 --- a/manifests/vhost.pp +++ b/manifests/vhost.pp @@ -35,6 +35,7 @@ $directoryindex = '', $vhost_name = '*', $logroot = $::apache::logroot, + $manage_logroot = true, $logroot_ensure = 'directory', $logroot_mode = undef, $log_level = undef, @@ -225,7 +226,7 @@ } # Same as above, but for logroot - if ! defined(File[$logroot]) { + if ! defined(File[$logroot]) and $manage_logroot { file { $logroot: ensure => $logroot_ensure, mode => $logroot_mode,