aboutsummaryrefslogtreecommitdiffstats
path: root/modules/gitweb/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-07-19 20:12:32 +0000
committerMichael Scherer <misc@mageia.org>2011-07-19 20:12:32 +0000
commit835fa6f17fe9dc0b74d478c5131a5266b8294993 (patch)
tree59dd08ba4d8118316bfb99f3e65d66990b01de1d /modules/gitweb/manifests
parent69c3ec7b91c0cb80f32d712ee29df01661fbb844 (diff)
downloadpuppet-835fa6f17fe9dc0b74d478c5131a5266b8294993.tar
puppet-835fa6f17fe9dc0b74d478c5131a5266b8294993.tar.gz
puppet-835fa6f17fe9dc0b74d478c5131a5266b8294993.tar.bz2
puppet-835fa6f17fe9dc0b74d478c5131a5266b8294993.tar.xz
puppet-835fa6f17fe9dc0b74d478c5131a5266b8294993.zip
add a prototype of a working gitweb module
Diffstat (limited to 'modules/gitweb/manifests')
-rw-r--r--modules/gitweb/manifests/init.pp36
1 files changed, 36 insertions, 0 deletions
diff --git a/modules/gitweb/manifests/init.pp b/modules/gitweb/manifests/init.pp
new file mode 100644
index 00000000..d0b3b255
--- /dev/null
+++ b/modules/gitweb/manifests/init.pp
@@ -0,0 +1,36 @@
+class gitweb {
+ package { 'gitweb':
+ ensure => installed,
+ }
+ # 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',
+ content => template('gitweb/gitweb.conf'),
+ notify => Service['apache'],
+ 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'],
+ }
+
+ file { 'gitweb.wrapper.sh':
+ ensure => present,
+ mode => 755,
+ path => '/usr/local/bin/gitweb.wrapper.sh',
+ content => template('gitweb/wrapper.sh'),
+ notify => Service['apache'],
+ }
+
+ apache::vhost_base { "gitweb.$domain":
+ content => template("gitweb/vhost.conf")
+ }
+}