summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster/checklastrun.pp
blob: 685d6b473e2c5ef35d50b6352dc9f534c793f670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class puppet::puppetmaster::checklastrun {

  file {
    '/usr/local/bin/puppetlast':
      source => [ "puppet:///modules/site-puppet/master/puppetlast",
                  "puppet:///modules/puppet/master/puppetlast" ],
      owner => root, group => 0, mode => 0700;
  
    '/etc/cron.d/puppetlast.cron':
      content => "${puppetmaster_checklastrun} root /usr/local/bin/puppetlast ${puppetmaster_checklastrun_timeout}\n",
      require => File["/usr/local/bin/puppetlast"],
      owner => root, group => 0, mode => 0644,
  }
}