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 |
} |