summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-06-20 15:32:20 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-06-20 15:32:20 -0300
commitc844730bdea106d9bda490e71d457dbbf55e129f (patch)
tree86541d5e10ccd7212e6e03927a84761dbc11a28e /manifests
parenta809ac280da350f12e10d8adf6c7f47e6f4dfecd (diff)
downloadpuppet-puppet-c844730bdea106d9bda490e71d457dbbf55e129f.tar.gz
puppet-puppet-c844730bdea106d9bda490e71d457dbbf55e129f.tar.bz2
Adding puppetlast cronjob
Diffstat (limited to 'manifests')
-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,
+ }
}