aboutsummaryrefslogtreecommitdiffstats
path: root/modules/viewvc
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-01-08 20:25:11 +0000
committerMichael Scherer <misc@mageia.org>2012-01-08 20:25:11 +0000
commit50127c9cb30591647e0ee6cd8d62750b6b5cbc0e (patch)
treeb7162718b9419f34a17a394ae920623dd635a130 /modules/viewvc
parent576a0f615e20a69022eed99e410672448827991e (diff)
downloadpuppet-50127c9cb30591647e0ee6cd8d62750b6b5cbc0e.tar
puppet-50127c9cb30591647e0ee6cd8d62750b6b5cbc0e.tar.gz
puppet-50127c9cb30591647e0ee6cd8d62750b6b5cbc0e.tar.bz2
puppet-50127c9cb30591647e0ee6cd8d62750b6b5cbc0e.tar.xz
puppet-50127c9cb30591647e0ee6cd8d62750b6b5cbc0e.zip
clean viewvc module, some refactoring
Diffstat (limited to 'modules/viewvc')
-rw-r--r--modules/viewvc/manifests/init.pp37
1 files changed, 11 insertions, 26 deletions
diff --git a/modules/viewvc/manifests/init.pp b/modules/viewvc/manifests/init.pp
index 37e62e3d..8912b574 100644
--- a/modules/viewvc/manifests/init.pp
+++ b/modules/viewvc/manifests/init.pp
@@ -1,46 +1,31 @@
class viewvc {
- package { ['viewvc','python-svn','python-flup']:
- ensure => installed
- }
+ package { ['viewvc','python-svn','python-flup']: }
# http_expiration_time = 600
# svn_roots = admin: svn://svn.mageia.org/svn/adm/
- file { 'viewvc.conf':
- ensure => present,
- path => '/etc/viewvc/viewvc.conf',
+ file { '/etc/viewvc/viewvc.conf':
content => template('viewvc/viewvc.conf'),
notify => Service['apache'],
- require => Package['viewvc']
+ require => Package['viewvc'],
}
- file { 'webapps.d/viewvc.conf':
- ensure => present,
- path => '/etc/httpd/conf/webapps.d/viewvc.conf',
+ apache::webapp_other { 'viewvc':
content => template('viewvc/webapp.conf'),
- notify => Service['apache'],
- require => Package['apache'],
}
- $kill_viewvc_path = '/usr/local/sbin/kill_viewvc'
- file { "$kill_viewvc_path":
- ensure => present,
- mode => 755,
- owner => root,
- group => root,
- content => template('viewvc/kill_viewvc.sh'),
+ local_script { "kill_viewvc":
+ content => template('viewvc/kill_viewvc.sh'),
}
cron { 'kill_viewvc':
- command => "$kill_viewvc_path",
- hour => "*",
- minute => "*/5",
- user => "apache",
- environment => "MAILTO=root",
+ command => "/usr/local/bin/kill_viewvc",
+ hour => "*",
+ minute => "*/5",
+ user => "apache",
+ environment => "MAILTO=root",
}
- # need newer version of viewvc
apache::vhost_base { "svnweb.$domain":
- # TODO created a full fledged type
aliases => { "/viewvc" => "/var/www/viewvc/",
"/" => "/usr/share/viewvc/bin/wsgi/viewvc.fcgi/" },
content => template("viewvc/vhost.conf")