aboutsummaryrefslogtreecommitdiff
path: root/modules/cron_puppet
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-08 23:10:05 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-08 23:11:09 +0200
commit49688e5c9bac04c0c7426d97aa97e54c4f33a4a5 (patch)
treeb241da8c6453e848157d2a2e0691029c7adc8a62 /modules/cron_puppet
parent66e7b1e6d508e7d6f5517652110a3e2e03bb3c47 (diff)
downloadPuppet-49688e5c9bac04c0c7426d97aa97e54c4f33a4a5.tar.gz
Puppet-49688e5c9bac04c0c7426d97aa97e54c4f33a4a5.tar.zst
Puppet-49688e5c9bac04c0c7426d97aa97e54c4f33a4a5.zip
Enable cronie
Diffstat (limited to 'modules/cron_puppet')
-rw-r--r--modules/cron_puppet/manifests/init.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/cron_puppet/manifests/init.pp b/modules/cron_puppet/manifests/init.pp
index a694a6f..b1d7e01 100644
--- a/modules/cron_puppet/manifests/init.pp
+++ b/modules/cron_puppet/manifests/init.pp
@@ -7,6 +7,9 @@ class cron_puppet {
7 owner => root, 7 owner => root,
8 group => root, 8 group => root,
9 } 9 }
10 package { 'cronie':
11 ensure => 'latest',
12 }
10 cron { 'puppet-apply': 13 cron { 'puppet-apply':
11 ensure => present, 14 ensure => present,
12 command => "cd /etc/puppetlabs/puppet ; /usr/bin/git pull", 15 command => "cd /etc/puppetlabs/puppet ; /usr/bin/git pull",
@@ -14,4 +17,8 @@ class cron_puppet {
14 minute => '*/30', 17 minute => '*/30',
15 require => File['post-hook'], 18 require => File['post-hook'],
16 } 19 }
20 service { 'cronie':
21 ensure => 'running',
22 enable => true
23 }
17} 24}