summaryrefslogtreecommitdiff
path: root/manifests/vhost/gitweb.pp
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2009-06-09 15:15:55 +0200
committerMarcel Haerry <haerry@puzzle.ch>2009-06-09 15:15:55 +0200
commit7cd37266beea81f613c41260e8921eef956dbb1e (patch)
tree6e99eaf94a617129afc06f6df90eff16f94fd60d /manifests/vhost/gitweb.pp
parent11499b9d5cb3f752d31bef683153e82ec02860e7 (diff)
introduced a logpath setting for vhosts, use it for gitweb issues
Diffstat (limited to 'manifests/vhost/gitweb.pp')
-rw-r--r--manifests/vhost/gitweb.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/vhost/gitweb.pp b/manifests/vhost/gitweb.pp
index ee9924a..f875490 100644
--- a/manifests/vhost/gitweb.pp
+++ b/manifests/vhost/gitweb.pp
@@ -22,6 +22,13 @@ define apache::vhost::gitweb(
ensure => $ensure,
path => '/var/www/git',
path_is_webdir => true,
+ logpath => $operatingsystem ? {
+ centos => '/var/log/httpd',
+ fedora => '/var/log/httpd',
+ redhat => '/var/log/httpd',
+ openbsd => '/var/www/logs',
+ default => '/var/log/apache2'
+ },
template_mode => 'gitweb',
domain => $domain,
domainalias => $domainalias,