From 5d21f8f46c5b089160b1f377c140d3c4de46ed54 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Mon, 28 Mar 2011 18:00:52 -0400 Subject: update cronjob to capture the return code output as suggested by LeLutin in https://labs.riseup.net/code/issues/2819 --- manifests/cron/linux.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/cron/linux.pp b/manifests/cron/linux.pp index 5f8ac98..15adb65 100644 --- a/manifests/cron/linux.pp +++ b/manifests/cron/linux.pp @@ -14,7 +14,7 @@ class puppet::cron::linux inherits puppet::linux { File['/etc/cron.d/puppetd.cron']{ source => undef, - content => "# run puppet\n$puppet_crontime root /usr/sbin/puppetd --onetime --no-daemonize --config=$puppet_config --color false $puppet_http_compression_str | grep -E '(^err:|^alert:|^emerg:|^crit:)'; if [ $? -eq 1 ]; then exit 0; fi\n", + content => "#run puppet\n$puppet_crontime root output=$(/usr/sbin/puppetd --onetime --no-daemonize --splay --config=/etc/puppet/puppet.conf --color false); ret=$?; printf \"%s\" \"$output\" | grep -E '(^err:|^alert:|^emerg:|^crit:)'; exit $ret\n", before => Service['puppet'], } } -- cgit v1.2.3