blob: c4b84bda1bc89947b71b85befaede133737145c6 (
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
|
# manifests/init.pp - manage lighttpd stuff
# Copyright (C) 2007 admin@immerda.ch
# GPLv3
class lighttpd(
$cluster_node = '',
$manage_munin = false,
$manage_shorewall = false
) {
$conf_dir_name = $::operatingsystem ? {
debian => 'conf-available',
ubuntu => 'conf-available',
default => 'conf.d'
}
$conf_dir = "/etc/lighttpd/${conf_dir_name}"
case $::operatingsystem {
debian,ubuntu: { include lighttpd::debian }
centos,redhat,fedora: { include lighttpd::centos }
default: { include lighttpd::base }
}
if $manage_shorewall {
include shorewall::rules::http
}
if $manage_munin {
include lighttpd::munin
}
}
|