1 |
class viewvc { |
class viewvc { |
2 |
package { ['viewvc','python-svn','python-flup']: } |
package {['viewvc', |
3 |
|
'python-svn', |
4 |
|
'python-flup']: } |
5 |
|
|
6 |
# http_expiration_time = 600 |
# http_expiration_time = 600 |
7 |
# svn_roots = admin: svn://svn.mageia.org/svn/adm/ |
# svn_roots = admin: svn://svn.mageia.org/svn/adm/ |
8 |
|
|
9 |
file { '/etc/viewvc/viewvc.conf': |
file { '/etc/viewvc/viewvc.conf': |
10 |
content => template('viewvc/viewvc.conf'), |
content => template('viewvc/viewvc.conf'), |
11 |
notify => Service['apache'], |
notify => Service['apache'], |
12 |
require => Package['viewvc'], |
require => Package['viewvc'], |
13 |
} |
} |
14 |
|
|
16 |
webapp_file => 'viewvc/webapp.conf', |
webapp_file => 'viewvc/webapp.conf', |
17 |
} |
} |
18 |
|
|
19 |
local_script { "kill_viewvc": |
local_script { 'kill_viewvc': |
20 |
content => template('viewvc/kill_viewvc.sh'), |
content => template('viewvc/kill_viewvc.sh'), |
21 |
} |
} |
22 |
|
|
23 |
cron { 'kill_viewvc': |
cron { 'kill_viewvc': |
24 |
command => "/usr/local/bin/kill_viewvc", |
command => '/usr/local/bin/kill_viewvc', |
25 |
hour => "*", |
hour => '*', |
26 |
minute => "*/5", |
minute => '*/5', |
27 |
user => "apache", |
user => 'apache', |
28 |
environment => "MAILTO=root", |
environment => 'MAILTO=root', |
29 |
} |
} |
30 |
|
|
31 |
apache::vhost_base { "svnweb.$domain": |
apache::vhost_base { "svnweb.$::domain": |
32 |
aliases => { "/viewvc" => "/var/www/viewvc/", |
aliases => {'/viewvc' => '/var/www/viewvc/', |
33 |
"/" => "/usr/share/viewvc/bin/wsgi/viewvc.fcgi/" }, |
'/' => '/usr/share/viewvc/bin/wsgi/viewvc.fcgi/'}, |
34 |
content => template("viewvc/vhost.conf") |
content => template('viewvc/vhost.conf') |
35 |
} |
} |
36 |
} |
} |
37 |
|
|