diff options
author | Marcel Haerry <haerry@puzzle.ch> | 2009-06-09 15:15:55 +0200 |
---|---|---|
committer | Marcel Haerry <haerry@puzzle.ch> | 2009-06-09 15:15:55 +0200 |
commit | 7cd37266beea81f613c41260e8921eef956dbb1e (patch) | |
tree | 6e99eaf94a617129afc06f6df90eff16f94fd60d /manifests/vhost/template.pp | |
parent | 11499b9d5cb3f752d31bef683153e82ec02860e7 (diff) |
introduced a logpath setting for vhosts, use it for gitweb issues
Diffstat (limited to 'manifests/vhost/template.pp')
-rw-r--r-- | manifests/vhost/template.pp | 6 |
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, |