blob: d7c07b22e317e91a0bbb83dd042d8f2490503159 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
class gitweb {
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 { '/etc/gitweb.conf':
content => template('gitweb/gitweb.conf'),
notify => Service['apache'],
require => Package['gitweb'],
}
apache::webapp_other { 'gitweb':
webapp_file => 'gitweb/webapp.conf',
}
mga_common::local_script { 'gitweb.wrapper.sh':
content => template('gitweb/wrapper.sh'),
notify => Service['apache'],
}
$vhost = "gitweb.${::domain}"
apache::vhost::base { $vhost:
content => template('gitweb/vhost.conf')
}
apache::vhost::base { "ssl_${vhost}":
vhost => $vhost,
use_ssl => true,
content => template('gitweb/vhost.conf'),
}
}
|