blob: 1756a0689339ee8e89b2bdcb7573a075702aa354 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
class cron_puppet {
file { 'post-hook':
ensure => file,
path => '/etc/puppetlabs/puppet/.git/hooks/post-merge',
source => 'puppet:///modules/cron_puppet/post-merge',
mode => '0755',
owner => root,
group => root,
}
package { 'cronie':
ensure => 'present',
}
cron { 'puppet-apply':
ensure => present,
command => "cd /etc/puppetlabs/puppet ; /usr/bin/git pull",
user => root,
minute => '*/30',
require => File['post-hook'],
}
service { 'cronie':
ensure => 'running',
enable => true
}
}
|