summaryrefslogtreecommitdiff
path: root/manifests/puppetmasterd.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-23 15:21:00 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-02-23 15:21:00 -0300
commit7e3257a0eb24af5c3d4978e77e6a2fcd7e036c37 (patch)
tree2a348cc7534961ebf8ef9f9dcdfa80489b231744 /manifests/puppetmasterd.pp
parent3f1a3d0efb58a4395add825195a76e2b2e8ef8a8 (diff)
downloadpuppet-puppet-7e3257a0eb24af5c3d4978e77e6a2fcd7e036c37.tar.gz
puppet-puppet-7e3257a0eb24af5c3d4978e77e6a2fcd7e036c37.tar.bz2
Using custom puppetlast command thanks to immerda's module
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":