diff options
author | varac <varacanero@zeromail.org> | 2010-01-20 14:08:29 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2010-01-20 14:08:29 +0100 |
commit | 9e54a92395046dde9a588e3d8e80ded99745ade2 (patch) | |
tree | 789cd9647cc66c411ab606961d51e372a0a4694a /manifests | |
parent | 1436c939bdb2ef131a6ff71e63d9e6909a228651 (diff) |
changed destination from /opt/bin/puppetlast to /usr/local/bin
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/puppetmaster/checklastrun.pp | 14 |
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"]; } |