summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/vhost/template.pp6
1 files changed, 4 insertions, 2 deletions
diff --git a/manifests/vhost/template.pp b/manifests/vhost/template.pp
index 7c1f9be..c1c9935 100644
--- a/manifests/vhost/template.pp
+++ b/manifests/vhost/template.pp
@@ -85,8 +85,10 @@ define apache::vhost::template(
'absent' => "$real_path/logs",
default => $logpath
}
- case $logmode {
- 'semianonym','anonym': { include apache::noiplog }
+ if $ensure != 'absent' {
+ case $logmode {
+ 'semianonym','anonym': { include apache::noiplog }
+ }
}
$servername = $domain ? {