1 |
class gitweb { |
2 |
package { 'gitweb': } |
3 |
# TODO some rpm may be needed ( like perl-FCGI ) |
4 |
# git >= 17.2 is needed for fastcgi support |
5 |
|
6 |
# TODO fix git rpm to show the css, the js, and others missing file |
7 |
|
8 |
file { '/etc/gitweb.conf': |
9 |
content => template('gitweb/gitweb.conf'), |
10 |
notify => Service['apache'], |
11 |
require => Package['gitweb'], |
12 |
} |
13 |
|
14 |
apache::webapp_other { 'gitweb': |
15 |
webapp_file => 'gitweb/webapp.conf', |
16 |
} |
17 |
|
18 |
mga_common::local_script { 'gitweb.wrapper.sh': |
19 |
content => template('gitweb/wrapper.sh'), |
20 |
notify => Service['apache'], |
21 |
} |
22 |
|
23 |
$vhost = "gitweb.${::domain}" |
24 |
apache::vhost::base { $vhost: |
25 |
content => template('gitweb/vhost.conf') |
26 |
} |
27 |
apache::vhost::base { "ssl_${vhost}": |
28 |
vhost => $vhost, |
29 |
use_ssl => true, |
30 |
content => template('gitweb/vhost.conf'), |
31 |
} |
32 |
} |