blob: 36116b43cf0c8b6f9e9e17337a0349daa08a5417 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# manifests/puppetmaster.pp
class puppet::puppetmaster inherits puppet {
case $operatingsystem {
debian: { include puppet::puppetmaster::debian }
centos: { include puppet::puppetmaster::centos }
default: {
case $kernel {
linux: { include puppet::puppetmaster::linux }
}
}
}
include puppet::puppetmaster::base
case $puppetmaster_checklastrun {
'': { $puppetmaster_checklastrun = '40 10,22 * * *' }
}
if $puppetmaster_checklastrun {
include puppet::puppetmaster::checklastrun
} else {
include puppet::puppetmaster::checklastrun::disable
}
if $puppetmaster_mode == 'passenger' {
include puppet::puppetmaster::pasenger
} elsif $puppetmaster_mode == 'cluster' {
include puppet::puppetmaster::cluster
}
case $puppetmaster_cleanup_reports {
'': { $puppetmaster_cleanup_reports = '30' }
}
if $puppetmaster_cleanup_reports {
include puppet::puppetmaster::cleanup_reports
} else {
include puppet::puppetmaster::cleanup_reports::disable
}
if $use_shorewall {
include shorewall::rules::puppet::master
}
}
|