diff options
Diffstat (limited to 'manifests/cron.pp')
-rw-r--r-- | manifests/cron.pp | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/manifests/cron.pp b/manifests/cron.pp index 8cb4644..9a8e777 100644 --- a/manifests/cron.pp +++ b/manifests/cron.pp @@ -1,10 +1,32 @@ -class puppet::cron inherits puppet { - case $operatingsystem { - debian,ubuntu: { include puppet::cron::linux } +# run puppet agent as cron +class puppet::cron( + $cron_time, + $stop_service = true, + $config = '/etc/puppet/puppet.conf', + $config_content = false, + $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, + config_content => $config_content, + 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 { openbsd: { include puppet::cron::openbsd } - freebsd: { include puppet::cron::freebsd } default: { - case $kernel { + case $::kernel { linux: { include puppet::cron::linux } default: { include puppet::cron::base } } |