summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-08-05 12:29:36 +0200
committermh <mh@immerda.ch>2013-08-05 12:29:36 +0200
commit98c84c83bdeec6ca245318497597be3c74633990 (patch)
tree483f646d384da17c0530e6d3fbcc3bb0559a4037
parent21b0cc1f2633be37b11a78b255ae06983494a2a2 (diff)
silence the lastrun output on only successfull runs
-rw-r--r--manifests/master/checklastrun.pp2
1 files changed, 1 insertions, 1 deletions
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,
}