From 23c385e39e89ffd326bf12ad2d7b1640d4f65a95 Mon Sep 17 00:00:00 2001 From: nadir Date: Sun, 7 Mar 2010 22:56:02 +0100 Subject: README, added $puppet_crontime to tune how often a client gets updates --- manifests/cron/linux.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'manifests/cron/linux.pp') diff --git a/manifests/cron/linux.pp b/manifests/cron/linux.pp index be17498..75f11a3 100644 --- a/manifests/cron/linux.pp +++ b/manifests/cron/linux.pp @@ -4,9 +4,15 @@ class puppet::cron::linux inherits puppet::linux { case $puppet_config { '': { $puppet_config = '/etc/puppet/puppet.conf' } } + + case $puppet_crontime { + '': { $puppet_crontime = '0,30 * * * *' } + } + + File['/etc/cron.d/puppetd.cron']{ source => undef, content => "# run puppet -0,30 * * * * root /usr/sbin/puppetd --onetime --no-daemonize --splay --config=$puppet_config --color false | grep -E '(^err:|^alert:|^emerg:|^crit:)'\n", +$puppet_crontime root /usr/sbin/puppetd --onetime --no-daemonize --splay --config=$puppet_config --color false | grep -E '(^err:|^alert:|^emerg:|^crit:)'\n", } } -- cgit v1.2.3