diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-08-08 18:28:11 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-08-08 18:28:19 +0200 |
commit | 5b4fbb5f53cfe34b9852223bc5dee86875fbe7b0 (patch) | |
tree | 9d97ee7848753ee69fc713881fdb004ce94c9cec /modules/cron_puppet/manifests | |
parent | 596f9fefb01f1419e640f3f3a878443adc047b07 (diff) | |
download | Puppet-5b4fbb5f53cfe34b9852223bc5dee86875fbe7b0.tar.gz Puppet-5b4fbb5f53cfe34b9852223bc5dee86875fbe7b0.tar.zst Puppet-5b4fbb5f53cfe34b9852223bc5dee86875fbe7b0.zip |
Rename cron-puppet class to cron_puppet
Diffstat (limited to 'modules/cron_puppet/manifests')
-rw-r--r-- | modules/cron_puppet/manifests/init.pp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/cron_puppet/manifests/init.pp b/modules/cron_puppet/manifests/init.pp new file mode 100644 index 0000000..a694a6f --- /dev/null +++ b/modules/cron_puppet/manifests/init.pp | |||
@@ -0,0 +1,17 @@ | |||
1 | class cron_puppet { | ||
2 | file { 'post-hook': | ||
3 | ensure => file, | ||
4 | path => '/etc/puppetlabs/puppet/.git/hooks/post-merge', | ||
5 | source => 'puppet:///modules/cron_puppet/post-merge', | ||
6 | mode => '0755', | ||
7 | owner => root, | ||
8 | group => root, | ||
9 | } | ||
10 | cron { 'puppet-apply': | ||
11 | ensure => present, | ||
12 | command => "cd /etc/puppetlabs/puppet ; /usr/bin/git pull", | ||
13 | user => root, | ||
14 | minute => '*/30', | ||
15 | require => File['post-hook'], | ||
16 | } | ||
17 | } | ||