blob: cc6351c36a246034f6576278a8d1c1474409f68c (
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 {
case $operatingsystem {
default: { include lighttpd::base }
}
}
class lighttpd::base {
package{'lighttpd':
ensure => installed,
}
service{lighttpd:
ensure => running,
enable => true,
hasstatus => true,
require => Package[lighttpd],
}
file{'/etc/lighttpd/lighttpd.conf':
source => [ "puppet://$server/files/lighttpd/${fqdn}/lighttpd.conf",
"puppet://$server/files/lighttpd/lighttpd.conf",
"puppet://$server/lighttpd/lighttpd.conf" ],
require => Package['lighttpd'],
notify => Service['lighttpd'],
owner => root, group => 0, mode => 0644;
}
}
|