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 => "/usr/local/sbin/puppetlast",
- user => root,
- hour => "0",
- minute => "0",
- weekday => "0",
- ensure => absent,
- require => File["/usr/local/sbin/puppetlast"],
- }
-
# cron rule to restart puppetmaster before restarting the nodes
cron { "puppetmaster-restart":
command => "/etc/init.d/puppetmaster restart > /dev/null 2>&1",
ensure => absent,
}
+ # cron rule to execute puppetlast once a week as a report
+ # currently not working for puppet 2.6.x
+ cron { "puppetlast":
+ command => "/usr/local/sbin/puppetlast",
+ user => root,
+ hour => "0",
+ minute => "0",
+ weekday => "0",
+ ensure => $puppetversion ? {
+ "0.25.4" => present,
+ default => absent,
+ },
+ require => File["/usr/local/sbin/puppetlast"],
+ }
+
# custom puppetlast command, thanks to immerda module:
# http://git.puppet.immerda.ch/?p=module-puppet.git;a=summary
#
# right now it's not working, see
# https://labs.riseup.net/code/issues/2515
file { "/usr/local/sbin/puppetlast":
- ensure => absent,
source => "puppet:///modules/puppet/lastruncheck",
+ ensure => absent,
owner => root,
group => root,
mode => 0700,