summaryrefslogtreecommitdiff
path: root/manifests/vhost/template.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-08-11 14:38:40 +0200
committermh <mh@immerda.ch>2010-08-11 14:38:40 +0200
commit747054969e709681072426ff2c9ef3446ba7ceb8 (patch)
tree6ff8c2f133402c63b46e35b334e0af865d2280df /manifests/vhost/template.pp
parent7bbb0feacac0565457f5f56f65468429803454fb (diff)
only include noip logging if we actually need it
Diffstat (limited to 'manifests/vhost/template.pp')
-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 ? {