summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/cron/linux.pp3
-rw-r--r--manifests/puppetmaster/checklastrun.pp1
2 files changed, 3 insertions, 1 deletions
diff --git a/manifests/cron/linux.pp b/manifests/cron/linux.pp
index 33a4535..263dc3f 100644
--- a/manifests/cron/linux.pp
+++ b/manifests/cron/linux.pp
@@ -17,6 +17,7 @@ class puppet::cron::linux inherits puppet::linux {
source => undef,
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'],
- ensure => present
+ ensure => present,
+ notify => service['cron']
}
}
diff --git a/manifests/puppetmaster/checklastrun.pp b/manifests/puppetmaster/checklastrun.pp
index f89edd0..b57ec05 100644
--- a/manifests/puppetmaster/checklastrun.pp
+++ b/manifests/puppetmaster/checklastrun.pp
@@ -25,5 +25,6 @@ class puppet::puppetmaster::checklastrun {
owner => root,
group => 0,
mode => '0644',
+ notify => service['cron']
}
}