summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-12-27 20:40:50 +0000
committermh <mh@immerda.ch>2008-12-27 20:40:50 +0000
commit972d1f4b27d89ffcda90b1cbe5e7b1923af62c03 (patch)
tree51813754d6650c87cf3d9a40da602ae51b3b2162 /manifests/puppetmaster
parente99ffa30dba1fb918d2c5018e2f282e51abcdbf6 (diff)
added lastrun check
Diffstat (limited to 'manifests/puppetmaster')
-rw-r--r--manifests/puppetmaster/checklastrun.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/puppetmaster/checklastrun.pp b/manifests/puppetmaster/checklastrun.pp
new file mode 100644
index 0000000..3c5708c
--- /dev/null
+++ b/manifests/puppetmaster/checklastrun.pp
@@ -0,0 +1,13 @@
+class puppet::puppetmaster::checklastrun {
+ include ibp::opt::bin
+ file{'/opt/bin/puppetlast':
+ source => [ "puppet://$server/files/puppet/master/puppetlast",
+ "puppet://$server/puppet/master/puppetlast"],
+ owner => root, group => 0, mode =0700;
+ }
+ file{'/etc/cron.d/puppetlast.cron':
+ content => "40 22 * * * root /opt/bin/puppetlast"
+ require => File['/opt/bin/puppetlast'],
+ owner => root, group => 0, mode => 0644;
+ }
+}