aboutsummaryrefslogtreecommitdiffstats
path: root/modules/gitweb
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-01-14 19:26:11 +0000
committerMichael Scherer <misc@mageia.org>2012-01-14 19:26:11 +0000
commite40da93b493fa3402cd8ddf4c88acb03257da58f (patch)
tree506b0e384cd9a3e793a2394193d938a90937df0c /modules/gitweb
parent1e067b734674fc92b938c8b941e3ab886a34984d (diff)
downloadpuppet-e40da93b493fa3402cd8ddf4c88acb03257da58f.tar
puppet-e40da93b493fa3402cd8ddf4c88acb03257da58f.tar.gz
puppet-e40da93b493fa3402cd8ddf4c88acb03257da58f.tar.bz2
puppet-e40da93b493fa3402cd8ddf4c88acb03257da58f.tar.xz
puppet-e40da93b493fa3402cd8ddf4c88acb03257da58f.zip
clean the gitweb module
Diffstat (limited to 'modules/gitweb')
-rw-r--r--modules/gitweb/manifests/init.pp23
1 files changed, 6 insertions, 17 deletions
diff --git a/modules/gitweb/manifests/init.pp b/modules/gitweb/manifests/init.pp
index 03fd901c..8cdc4932 100644
--- a/modules/gitweb/manifests/init.pp
+++ b/modules/gitweb/manifests/init.pp
@@ -1,32 +1,21 @@
class gitweb {
- package { 'gitweb':
- ensure => installed,
- }
+ package { 'gitweb': }
# TODO some rpm may be needed ( like perl-FCGI )
# git >= 17.2 is needed for fastcgi support
# TODO fix git rpm to show the css, the js, and others missing file
- file { 'gitweb.conf':
- ensure => present,
- path => '/etc/gitweb.conf',
+ file { '/etc/gitweb.conf':
content => template('gitweb/gitweb.conf'),
notify => Service['apache'],
- require => Package['gitweb']
+ require => Package['gitweb'],
}
- file { 'webapps.d/gitweb.conf':
- ensure => present,
- path => '/etc/httpd/conf/webapps.d/gitweb.conf',
- content => template('gitweb/webapp.conf'),
- notify => Service['apache'],
- require => Package['apache'],
+ apache::webapp_other { 'gitweb':
+ webapp_file => 'gitweb/webapp.conf',
}
- file { 'gitweb.wrapper.sh':
- ensure => present,
- mode => 755,
- path => '/usr/local/bin/gitweb.wrapper.sh',
+ local_script { 'gitweb.wrapper.sh':
content => template('gitweb/wrapper.sh'),
notify => Service['apache'],
}