blob: 74df5e7472cae12ae05f58db1561fb5d83d86738 (
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_lastruncheck_cron {
'',undef: { $puppetmaster_lastruncheck_cron = '40 10,22 * * *' }
}
if $puppetmaster_lastruncheck_cron {
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
}
}
|