summaryrefslogtreecommitdiff
path: root/manifests/cron.pp
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-02-24 14:34:39 -0500
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-02-24 14:38:39 -0500
commit0bb70b28a7c7679d0e07fd75230d40203c0d53b5 (patch)
treeacd91c59fea86768f81d98e262ed1677f646fa47 /manifests/cron.pp
parentbeae5a608dd1b1d370917896d853a6b53ad73a45 (diff)
parent8584340c2aeac7d97a78b8303ab377b5049b80c2 (diff)
Merge branch 'master' of git://git.puppet.immerda.ch/module-puppet
Conflicts: files/master/config.ru files/master/puppet.conf manifests/base.pp manifests/centos.pp manifests/cron.pp manifests/cron/base.pp manifests/cron/linux.pp manifests/debian.pp manifests/init.pp manifests/linux.pp manifests/master/linux.pp manifests/master/package/debian.pp manifests/puppetmaster/base.pp manifests/puppetmaster/centos.pp manifests/puppetmaster/checklastrun.pp manifests/puppetmaster/checklastrun/disable.pp manifests/puppetmaster/cleanup_reports.pp manifests/puppetmaster/cleanup_reports/disable.pp manifests/puppetmaster/debian.pp manifests/puppetmaster/package.pp manifests/puppetmaster/package/base.pp manifests/puppetmaster/passenger.pp
Diffstat (limited to 'manifests/cron.pp')
-rw-r--r--manifests/cron.pp32
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 }
}