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",
Service["puppetmaster"] {
ensure => stopped,
}
+
+ Cron["puppetlast"] {
+ ensure => absent,
+ }
}