diff options
Diffstat (limited to 'modules/gitweb/manifests/init.pp')
| -rw-r--r-- | modules/gitweb/manifests/init.pp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/modules/gitweb/manifests/init.pp b/modules/gitweb/manifests/init.pp index 8cdc4932..d7c07b22 100644 --- a/modules/gitweb/manifests/init.pp +++ b/modules/gitweb/manifests/init.pp @@ -7,20 +7,26 @@ class gitweb { file { '/etc/gitweb.conf': content => template('gitweb/gitweb.conf'), - notify => Service['apache'], + notify => Service['apache'], require => Package['gitweb'], } apache::webapp_other { 'gitweb': webapp_file => 'gitweb/webapp.conf', } - - local_script { 'gitweb.wrapper.sh': + + mga_common::local_script { 'gitweb.wrapper.sh': content => template('gitweb/wrapper.sh'), - notify => Service['apache'], + notify => Service['apache'], + } + + $vhost = "gitweb.${::domain}" + apache::vhost::base { $vhost: + content => template('gitweb/vhost.conf') } - - apache::vhost_base { "gitweb.$domain": - content => template("gitweb/vhost.conf") + apache::vhost::base { "ssl_${vhost}": + vhost => $vhost, + use_ssl => true, + content => template('gitweb/vhost.conf'), } } |
