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
33
34
|
class lighttpd::base::git::web inherits lighttpd::base {
File['/etc/lighttpd/lighttpd.conf']{
source => [ "puppet://$server/files/git/web/${fqdn}/lighttpd.conf",
"puppet://$server/files/git/web/lighttpd.conf",
"puppet://$server/git/web/lighttpd.conf" ],
}
}
class git::web::lighttpd {
include lighttpd
include lighttpd::base::git::web
file{'/etc/lighttpd/lighttpd-gitweb-defaults.conf':
source => [ "puppet://$server/files/git/web/${fqdn}/lighttpd-gitweb-defaults.conf",
"puppet://$server/files/git/web/lighttpd-gitweb-defaults.conf",
"puppet://$server/git/web/lighttpd-gitweb-defaults.conf" ],
require => Package['lighttpd'],
notify => Service['lighttpd'],
owner => root, group => 0, mode => 0644;
}
file{'/etc/lighttpd/lighttpd-gitweb.conf':
ensure => present,
require => Package['lighttpd'],
notify => Service['lighttpd'],
owner => root, group => 0, mode => 0644;
}
file{'/etc/lighttpd/gitweb.d':
ensure => directory,
require => Package['lighttpd'],
owner => root, group => 0, mode => 0755;
}
}
|