summaryrefslogtreecommitdiff
path: root/manifests/vhost/template.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/vhost/template.pp')
-rw-r--r--manifests/vhost/template.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/vhost/template.pp b/manifests/vhost/template.pp
index ccc4538..228ec9d 100644
--- a/manifests/vhost/template.pp
+++ b/manifests/vhost/template.pp
@@ -18,6 +18,7 @@ define apache::vhost::template(
$ensure = present,
$path = 'absent',
$path_is_webdir = false,
+ $logpath = 'absent',
$domain = 'absent',
$domainalias = 'absent',
$server_admin = 'absent',
@@ -54,7 +55,10 @@ define apache::vhost::template(
} else {
$documentroot = "$real_path/www"
}
- $logdir = "$real_path/logs"
+ $logdir = $logpath ? {
+ 'absent' => "$real_path/logs",
+ default => $logpath
+ }
$servername = $domain ? {
'absent' => $name,