summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster/checklastrun.pp
blob: 7686fec56dbcb1a4ccebeb3b9cf793a0c50a8a50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class puppet::puppetmaster::checklastrun {
    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 10,22 * * * root /opt/bin/puppetlast\n",
        require => File['/opt/bin/puppetlast'],
        owner => root, group => 0, mode => 0644;
    }
}