From 98c84c83bdeec6ca245318497597be3c74633990 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 5 Aug 2013 12:29:36 +0200 Subject: silence the lastrun output on only successfull runs --- manifests/master/checklastrun.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/master/checklastrun.pp b/manifests/master/checklastrun.pp index b80bb56..5375cc0 100644 --- a/manifests/master/checklastrun.pp +++ b/manifests/master/checklastrun.pp @@ -18,7 +18,7 @@ class puppet::master::checklastrun { owner => root, group => 0, mode => 0700; '/etc/cron.d/puppetlast.cron': - content => "${puppet::master::lastruncheck_cron} root /usr/local/sbin/puppetlast ${puppet_lastruncheck_timeout_str} ${puppet_lastruncheck_ignorehosts_str} ${puppet::master::lastruncheck_additionaloptions}\n", + content => "${puppet::master::lastruncheck_cron} root /usr/local/sbin/puppetlast ${puppet_lastruncheck_timeout_str} ${puppet_lastruncheck_ignorehosts_str} ${puppet::master::lastruncheck_additionaloptions} | grep -Ev '^OK: '\n", require => File["/usr/local/sbin/puppetlast"], owner => root, group => 0, mode => 0644, } -- cgit v1.2.3