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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1856 - (show annotations) (download)
Tue Jul 19 20:12:32 2011 UTC (12 years, 9 months ago) by misc
File size: 1019 byte(s)
add a prototype of a working gitweb module
1 class gitweb {
2 package { 'gitweb':
3 ensure => installed,
4 }
5 # TODO some rpm may be needed ( like perl-FCGI )
6 # git >= 17.2 is needed for fastcgi support
7
8 # TODO fix git rpm to show the css, the js, and others missing file
9
10 file { 'gitweb.conf':
11 ensure => present,
12 path => '/etc/gitweb.conf',
13 content => template('gitweb/gitweb.conf'),
14 notify => Service['apache'],
15 require => Package['gitweb']
16 }
17
18 file { 'webapps.d/gitweb.conf':
19 ensure => present,
20 path => '/etc/httpd/conf/webapps.d/gitweb.conf',
21 content => template('gitweb/webapp.conf'),
22 notify => Service['apache'],
23 }
24
25 file { 'gitweb.wrapper.sh':
26 ensure => present,
27 mode => 755,
28 path => '/usr/local/bin/gitweb.wrapper.sh',
29 content => template('gitweb/wrapper.sh'),
30 notify => Service['apache'],
31 }
32
33 apache::vhost_base { "gitweb.$domain":
34 content => template("gitweb/vhost.conf")
35 }
36 }

  ViewVC Help
Powered by ViewVC 1.1.30