summaryrefslogtreecommitdiff
path: root/manifests/cron.pp
blob: ffb8032734cb370f814b0425bf9b924af5ff4631 (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
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',
  $manage_shorewall = false,
  $puppetmaster = "puppet.${domain}",
  $puppetmaster_port = '8140',
  $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,
    manage_shorewall      => $manage_shorewall,
    puppetmaster          => $puppetmaster,
    puppetmaster_port     => $puppetmaster_port,
    puppetmaster_signport => $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 }
      }
    }
  }
}