diff options
Diffstat (limited to 'modules/viewvc/manifests/init.pp')
-rw-r--r-- | modules/viewvc/manifests/init.pp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/viewvc/manifests/init.pp b/modules/viewvc/manifests/init.pp index b4a1936c..29a50f48 100644 --- a/modules/viewvc/manifests/init.pp +++ b/modules/viewvc/manifests/init.pp @@ -28,9 +28,18 @@ class viewvc { environment => 'MAILTO=root', } + $robotsfile = '/var/www/viewvc/robots.txt' + file { $robotsfile: + ensure => present, + mode => 0644, + owner => root, + group => root, + source => 'puppet://modules/viewvc/robots.txt', + } + apache::vhost::base { "svnweb.$::domain": aliases => {'/viewvc' => '/var/www/viewvc/', - '/robots.txt' => '/var/www/viewvc/robots.txt', + '/robots.txt' => $robotsfile, '/' => '/usr/share/viewvc/bin/wsgi/viewvc.fcgi/'}, content => template('viewvc/vhost.conf') } |