summaryrefslogtreecommitdiff
path: root/manifests/master/checklastrun.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2014-08-30 13:24:04 +0200
committermh <mh@immerda.ch>2014-08-30 13:24:55 +0200
commitb8bd7e5c9208feb09019a395374a04437a8122a4 (patch)
tree404a93abfbbf674b8f8e04eda605a2b0b63e2035 /manifests/master/checklastrun.pp
parentc80c781fa05f94ac1c8631e068af98a6839b0a4a (diff)
fix cron name globally + linting
Diffstat (limited to 'manifests/master/checklastrun.pp')
-rw-r--r--manifests/master/checklastrun.pp16
1 files changed, 10 insertions, 6 deletions
diff --git a/manifests/master/checklastrun.pp b/manifests/master/checklastrun.pp
index 5375cc0..2544acc 100644
--- a/manifests/master/checklastrun.pp
+++ b/manifests/master/checklastrun.pp
@@ -1,3 +1,4 @@
+# check for last run
class puppet::master::checklastrun {
$puppet_lastruncheck_ignorehosts_str = $puppet::master::lastruncheck_ignorehosts ? {
@@ -14,12 +15,15 @@ class puppet::master::checklastrun {
file{
'/usr/local/sbin/puppetlast':
- source => [ "puppet:///modules/puppet/master/lastruncheck" ],
- owner => root, group => 0, mode => 0700;
-
- '/etc/cron.d/puppetlast.cron':
+ source => 'puppet:///modules/puppet/master/lastruncheck',
+ owner => root,
+ group => 0,
+ mode => '0700';
+ '/etc/cron.d/puppetlast':
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,
+ require => File['/usr/local/sbin/puppetlast'],
+ owner => root,
+ group => 0,
+ mode => '0644';
}
}