From 972d1f4b27d89ffcda90b1cbe5e7b1923af62c03 Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 27 Dec 2008 20:40:50 +0000 Subject: added lastrun check --- manifests/puppetmaster.pp | 2 ++ manifests/puppetmaster/checklastrun.pp | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 manifests/puppetmaster/checklastrun.pp (limited to 'manifests') diff --git a/manifests/puppetmaster.pp b/manifests/puppetmaster.pp index 7e80792..f1fcc89 100644 --- a/manifests/puppetmaster.pp +++ b/manifests/puppetmaster.pp @@ -13,6 +13,8 @@ class puppet::puppetmaster inherits puppet { } } include puppet::puppetmaster::base + + puppet::puppetmaster::checklastrun } class puppet::puppetmaster::base inherits puppet::base { 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; + } +} -- cgit v1.2.3