summaryrefslogtreecommitdiff
path: root/manifests/puppetmasterd.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/puppetmasterd.pp')
-rw-r--r--manifests/puppetmasterd.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/puppetmasterd.pp b/manifests/puppetmasterd.pp
index d7bfd5b..89ffafc 100644
--- a/manifests/puppetmasterd.pp
+++ b/manifests/puppetmasterd.pp
@@ -80,6 +80,16 @@ class puppetmasterd {
require => [ File["/usr/local/sbin/update-puppet-conf.sh"], User["puppet"] ],
}
+ # cron rule to execute puppetlast once a week as a report
+ cron { "puppetlast":
+ command => "puppetlast",
+ user => root,
+ hour => "0",
+ minute => "0",
+ weekday => "0",
+ ensure => present,
+ }
+
# cron rule to restart puppetmaster before restarting the nodes
cron { "puppetmaster-restart":
command => "/etc/init.d/puppetmaster restart &> /dev/null",
@@ -119,4 +129,8 @@ class puppetmasterd::disabled inherits puppetmasterd {
Service["puppetmaster"] {
ensure => stopped,
}
+
+ Cron["puppetlast"] {
+ ensure => absent,
+ }
}