diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-08-24 02:22:17 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-08-29 22:46:14 +0200 |
commit | 7fed35a408b9ec37454169425823785b5fc8978b (patch) | |
tree | 28371d43ac304f99fb0a5305124858db69ef2137 /modules/cron_puppet/manifests | |
parent | ba2cf1b5d938810077b0fd73844faf432e8e8f9d (diff) | |
download | Puppet-7fed35a408b9ec37454169425823785b5fc8978b.tar.gz Puppet-7fed35a408b9ec37454169425823785b5fc8978b.tar.zst Puppet-7fed35a408b9ec37454169425823785b5fc8978b.zip |
Refactor base installation module
Diffstat (limited to 'modules/cron_puppet/manifests')
-rw-r--r-- | modules/cron_puppet/manifests/init.pp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/modules/cron_puppet/manifests/init.pp b/modules/cron_puppet/manifests/init.pp deleted file mode 100644 index c9d5a51..0000000 --- a/modules/cron_puppet/manifests/init.pp +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | class cron_puppet ( | ||
2 | $code_path = "/etc/puppetlabs/code" | ||
3 | ) { | ||
4 | file { 'post-hook': | ||
5 | ensure => file, | ||
6 | path => "$code_path/.git/hooks/post-merge", | ||
7 | source => 'puppet:///modules/cron_puppet/post-merge', | ||
8 | mode => '0755', | ||
9 | owner => root, | ||
10 | group => root, | ||
11 | } | ||
12 | package { 'cronie': | ||
13 | ensure => 'present', | ||
14 | } | ||
15 | cron { 'puppet-apply': | ||
16 | ensure => present, | ||
17 | command => "cd $code_path ; /usr/bin/git pull", | ||
18 | user => root, | ||
19 | minute => '*/30', | ||
20 | require => File['post-hook'], | ||
21 | } | ||
22 | service { 'cronie': | ||
23 | ensure => 'running', | ||
24 | enable => true | ||
25 | } | ||
26 | } | ||