summaryrefslogtreecommitdiff
path: root/manifests/cron.pp
blob: b4d9140be49b90c4781c9c03aec7f17282995865 (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
class puppet::cron(
  $cron_time,
  $stop_service = true,
  $config = '/etc/puppet/puppet.conf',
  $http_compression = 'puppet_http_compression',
  $cleanup_clientbucket = false,
  $ensure_version = 'installed',
  $ensure_facter_version = 'installed',
  $shorewall_puppetmaster = false,
  $shorewall_puppetmaster_port = '8140',
  $shorewall_puppetmaster_signport = '8141'
) {
  class{'puppet':
    config                          => $config,
    http_compression                => $http_compression,
    cleanup_clientbucket            => $cleanup_clientbucket,
    ensure_version                  => $ensure_version,
    ensure_facter_version           => $ensure_facter_version,
    shorewall_puppetmaster          => $shorewall_puppetmaster,
    shorewall_puppetmaster_port     => $shorewall_puppetmaster_port,
    shorewall_puppetmaster_signport => $shorewall_puppetmaster_signport,
  }
  case $::operatingsystem {
    debian: { include puppet::cron::debian }
    openbsd: { include puppet::cron::openbsd }
    default: {
      case $::kernel {
        linux: { include puppet::cron::linux }
        default: { include puppet::cron::base }
      }
    }
  }
}