diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/viewvc/manifests/init.pp | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/modules/viewvc/manifests/init.pp b/modules/viewvc/manifests/init.pp index b7c40202..8a94a004 100644 --- a/modules/viewvc/manifests/init.pp +++ b/modules/viewvc/manifests/init.pp @@ -1,11 +1,14 @@ class viewvc { - package { ['viewvc','python-svn','python-flup']: } + package {['viewvc', + 'python-svn', + 'python-flup']: } + # http_expiration_time = 600 # svn_roots = admin: svn://svn.mageia.org/svn/adm/ file { '/etc/viewvc/viewvc.conf': content => template('viewvc/viewvc.conf'), - notify => Service['apache'], + notify => Service['apache'], require => Package['viewvc'], } @@ -13,22 +16,22 @@ class viewvc { webapp_file => 'viewvc/webapp.conf', } - local_script { "kill_viewvc": - content => template('viewvc/kill_viewvc.sh'), + local_script { 'kill_viewvc': + content => template('viewvc/kill_viewvc.sh'), } cron { 'kill_viewvc': - command => "/usr/local/bin/kill_viewvc", - hour => "*", - minute => "*/5", - user => "apache", - environment => "MAILTO=root", + command => '/usr/local/bin/kill_viewvc', + hour => '*', + minute => '*/5', + user => 'apache', + environment => 'MAILTO=root', } - apache::vhost_base { "svnweb.$domain": - aliases => { "/viewvc" => "/var/www/viewvc/", - "/" => "/usr/share/viewvc/bin/wsgi/viewvc.fcgi/" }, - content => template("viewvc/vhost.conf") + apache::vhost_base { "svnweb.$::domain": + aliases => {'/viewvc' => '/var/www/viewvc/', + '/' => '/usr/share/viewvc/bin/wsgi/viewvc.fcgi/'}, + content => template('viewvc/vhost.conf') } } |