making maxsleep a parameter and decreasing it.

This commit is contained in:
do
2013-06-04 23:14:16 +02:00
parent a8bd3915c9
commit 30193279b3

View File

@@ -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'),