summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/puppetmaster/checklastrun.pp14
1 files changed, 3 insertions, 11 deletions
diff --git a/manifests/puppetmaster/checklastrun.pp b/manifests/puppetmaster/checklastrun.pp
index 7eae8a3..fdcc096 100644
--- a/manifests/puppetmaster/checklastrun.pp
+++ b/manifests/puppetmaster/checklastrun.pp
@@ -1,20 +1,12 @@
class puppet::puppetmaster::checklastrun {
- case $operatingsystem {
- debian,ubuntu: { $puppetlast_dest = "/usr/local/bin/puppetlast" }
- default: { $puppetlast_dest = "/opt/bin/puppetlast" }
- }
-
-
-
-
- file{"$puppetlast_dest":
+ file{"/usr/local/bin/puppetlast":
source => [ "puppet://$server/modules/site-puppet/master/puppetlast",
"puppet://$server/modules/puppet/master/puppetlast"],
owner => root, group => 0, mode => 0700;
}
file{'/etc/cron.d/puppetlast.cron':
- content => "40 10,22 * * * root $puppetlast_dest\n",
- require => File["$puppetlast_dest"],
+ content => "40 10,22 * * * root /usr/local/bin/puppetlast\n",
+ require => File["/usr/local/bin/puppetlast"],
owner => root, group => 0, mode => 0644,
notify => service["crond"];
}