From d9a2dd08e2e309f35df56942bf22aeb3a5325989 Mon Sep 17 00:00:00 2001 From: Theo Chatzimichos Date: Sun, 25 Jan 2015 20:53:07 +0100 Subject: [PATCH] Revert "update cron interval" This reverts commit 7eda4b4eb0c848579940fc205a5c6143a90db43a. The reverted commit replaced interval() with fqdn_rand(), for no clear reason. The former function though returns a list of random numbers, so we can have agent runs multiple times per hour. fqdn_rand returns only one number, thus this functionality was lost. Conflicts: manifests/agent/cron.pp --- manifests/agent/cron.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/agent/cron.pp b/manifests/agent/cron.pp index b000a3c..8ba2422 100644 --- a/manifests/agent/cron.pp +++ b/manifests/agent/cron.pp @@ -1,6 +1,7 @@ class puppet::agent::cron ( $enable = true, $run_noop = false, + $interval = 3, ) { include puppet::params @@ -19,6 +20,6 @@ cron { 'puppet agent': ensure => $ensure, command => $cmd, - minute => fqdn_rand(60), + minute => interval($interval, 60), } }