/[adm]/puppet/modules/viewvc/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/viewvc/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1922 - (show annotations) (download)
Sat Aug 13 10:37:16 2011 UTC (12 years, 8 months ago) by boklm
File size: 1299 byte(s)
fix owner and permissions on kill_viewvc script
1 class viewvc {
2 package { ['viewvc','python-svn','python-flup']:
3 ensure => installed
4 }
5 # http_expiration_time = 600
6 # svn_roots = admin: svn://svn.mageia.org/svn/adm/
7
8 file { 'viewvc.conf':
9 ensure => present,
10 path => '/etc/viewvc/viewvc.conf',
11 content => template('viewvc/viewvc.conf'),
12 notify => Service['apache'],
13 require => Package['viewvc']
14 }
15
16 file { 'webapps.d/viewvc.conf':
17 ensure => present,
18 path => '/etc/httpd/conf/webapps.d/viewvc.conf',
19 content => template('viewvc/webapp.conf'),
20 notify => Service['apache'],
21 }
22
23 $kill_viewvc_path = '/usr/local/sbin/kill_viewvc'
24 file { "$kill_viewvc_path":
25 ensure => present,
26 mode => 755,
27 owner => root,
28 group => root,
29 content => template('viewvc/kill_viewvc.sh'),
30 }
31
32 cron { 'kill_viewvc':
33 command => "$kill_viewvc_path",
34 hour => "*",
35 minute => "*/5",
36 user => "apache",
37 environment => "MAILTO=root",
38 }
39
40 # need newer version of viewvc
41 apache::vhost_base { "svnweb.$domain":
42 # TODO created a full fledged type
43 aliases => { "/viewvc" => "/var/www/viewvc/",
44 "/" => "/usr/share/viewvc/bin/wsgi/viewvc.fcgi/" },
45 content => template("viewvc/vhost.conf")
46 }
47 }
48

  ViewVC Help
Powered by ViewVC 1.1.30