summaryrefslogtreecommitdiff
path: root/manifests/cron.pp
blob: f8e9beb9aa371768f6195941edd792e53e6b529d (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
class puppet::cron(
  $cron_time,
  $stop_service = hiera('puppet_stop_service',true),
  $config = hiera('puppet_config','/etc/puppet/puppet.conf'),
  $http_compression = hiera('puppet_http_compression',false),
  $cleanup_clientbucket = hiera('puppet_cleanup_clientbucket',false),
  $ensure_version = hiera('puppet_ensure_version', 'installed'),
  $ensure_facter_version = hiera('puppet_ensure_facter_version', 'installed'),
) {
  class{'puppet':
    config => $config,
    http_compression => $http_compression,
    cleanup_clientbucket => $cleanup_clientbucket,
    ensure_version => $ensure_version,
    ensure_facter_version => $ensure_facter_version
  }
  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 }
      }
    }
  }
}