blob: f5201e7344a4de1b9dcdb9c4eb68a47df4f181ee (
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
|
define git::web::repo::lighttpd(
$ensure = 'present',
$gitweb_url,
$gitweb_config
){
if $ensure == 'present' { include git::web::lighttpd }
file{"/etc/lighttpd/conf.d/${name}.gitweb.conf": }
if $ensure == 'present' {
File["/etc/lighttpd/conf.d/${name}.gitweb.conf"]{
content => template('git/web/lighttpd'),
owner => root, group => 0, mode => 0644
}
} else {
File["/etc/lighttpd/conf.d/${name}.gitweb.conf"]{
ensure => $ensure,
}
}
if defined(Service['lighttpd']) {
File["/etc/lighttpd/conf.d/${name}.gitweb.conf"]{
notify => Service['lighttpd'],
}
}
}
|