diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-07-25 22:13:44 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-07-25 22:13:44 +0000 |
commit | 34d928b41dd59d2734699de42f6f4ebc23c5521b (patch) | |
tree | eb910a87aed93d0261839dd6d3d0b8a0c081f4f5 /modules/viewvc | |
parent | 0ba6e02c728c90ec2a1b4b10a03bfd77f5c8f7ca (diff) | |
download | puppet-34d928b41dd59d2734699de42f6f4ebc23c5521b.tar puppet-34d928b41dd59d2734699de42f6f4ebc23c5521b.tar.gz puppet-34d928b41dd59d2734699de42f6f4ebc23c5521b.tar.bz2 puppet-34d928b41dd59d2734699de42f6f4ebc23c5521b.tar.xz puppet-34d928b41dd59d2734699de42f6f4ebc23c5521b.zip |
viewvc: add ssl vhost
Diffstat (limited to 'modules/viewvc')
-rw-r--r-- | modules/viewvc/manifests/init.pp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/modules/viewvc/manifests/init.pp b/modules/viewvc/manifests/init.pp index aa74fcbf..cf5687d2 100644 --- a/modules/viewvc/manifests/init.pp +++ b/modules/viewvc/manifests/init.pp @@ -39,11 +39,19 @@ class viewvc { source => 'puppet:///modules/viewvc/robots.txt', } + $vhost_aliases = { + '/viewvc' => '/var/www/viewvc/', + '/robots.txt' => $robotsfile, + '/' => '/usr/share/viewvc/bin/wsgi/viewvc.fcgi/' + } apache::vhost::base { $viewvc::var::hostname: - aliases => {'/viewvc' => '/var/www/viewvc/', - '/robots.txt' => $robotsfile, - '/' => '/usr/share/viewvc/bin/wsgi/viewvc.fcgi/'}, + aliases => $vhost_aliases, content => template('viewvc/vhost.conf'), } + apache::vhost::base { "ssl_${viewvc::var::hostname}": + vhost => $viewvc::var::hostname, + use_ssl => true, + aliases => $vhost_aliases, + } } |