summaryrefslogtreecommitdiff
path: root/manifests/puppetmasterd.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/puppetmasterd.pp')
-rw-r--r--manifests/puppetmasterd.pp12
1 files changed, 11 insertions, 1 deletions
diff --git a/manifests/puppetmasterd.pp b/manifests/puppetmasterd.pp
index c8ccc7a..92a388e 100644
--- a/manifests/puppetmasterd.pp
+++ b/manifests/puppetmasterd.pp
@@ -89,12 +89,13 @@ class puppetmasterd {
# cron rule to execute puppetlast once a week as a report
cron { "puppetlast":
- command => "puppetlast",
+ command => "/usr/local/sbin/puppetlast",
user => root,
hour => "0",
minute => "0",
weekday => "0",
ensure => present,
+ require => File["/usr/local/sbin/puppetlast"],
}
# cron rule to restart puppetmaster before restarting the nodes
@@ -106,6 +107,15 @@ class puppetmasterd {
ensure => absent,
}
+ # custom puppetlast command, thanks to immerda module:
+ # http://git.puppet.immerda.ch/?p=module-puppet.git;a=summary
+ file { "/usr/local/sbin/puppetlast":
+ source => "puppet:///modules/puppet/lastruncheck",
+ owner => root,
+ group => root,
+ mode => 0700,
+ }
+
# restart the master from time to time to avoid memory problems
# thanks to https://labs.riseup.net/code/projects/shared-puppet
file { "/etc/cron.d/puppetmaster":