From 30193279b3c9e59f8b538514ab81d9bb845110ee Mon Sep 17 00:00:00 2001 From: do Date: Tue, 4 Jun 2013 23:14:16 +0200 Subject: [PATCH] making maxsleep a parameter and decreasing it. --- manifests/init.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index d075cac..9c6d988 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -6,7 +6,9 @@ class puppet ( $daemonize = true, $run_hour = '*/1', $run_minute = '10', - $run_if_ipmatch = '') { + $run_if_ipmatch = '', + $maxsleep = '240' +) { $puppet_service = $::kernel ? { 'Darwin' => 'org.macports.puppet', 'FreeBSD' => 'puppetd', @@ -69,7 +71,6 @@ class puppet ( hour => $run_hour, ensure => $cron_real, } - $maxsleep = 6400 file { '/usr/local/sbin/puppetd_run.sh': content => template('puppet/puppetd_run.sh.erb'),