summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster.pp
blob: 3e8711cd7464ecaf119659427a3a03ace8cfa916 (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
46
47
48
49
# 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 * * *' }
  }

  if $puppetmaster_lastruncheck_cron {
    include puppet::puppetmaster::checklastrun
  } else {
    include puppet::puppetmaster::checklastrun::disable
  }

  if $puppetmaster_mode == 'passenger' {
    include puppet::puppetmaster::passenger
  } 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
  }

  if $use_munin {
    include puppet::puppetmaster::munin
  }
}