aboutsummaryrefslogtreecommitdiff
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
parent66e7b1e6d508e7d6f5517652110a3e2e03bb3c47 (diff)
downloadPuppet-49688e5c9bac04c0c7426d97aa97e54c4f33a4a5.tar.gz
Puppet-49688e5c9bac04c0c7426d97aa97e54c4f33a4a5.tar.zst
Puppet-49688e5c9bac04c0c7426d97aa97e54c4f33a4a5.zip
Enable cronie
-rw-r--r--modules/base_packages/manifests/init.pp5
-rw-r--r--modules/cron_puppet/manifests/init.pp7
2 files changed, 7 insertions, 5 deletions
diff --git a/modules/base_packages/manifests/init.pp b/modules/base_packages/manifests/init.pp
index a49d211..a935d1b 100644
--- a/modules/base_packages/manifests/init.pp
+++ b/modules/base_packages/manifests/init.pp
@@ -20,10 +20,5 @@ class base_packages {
20 package { 'puppet': 20 package { 'puppet':
21 ensure => 'latest', 21 ensure => 'latest',
22 } 22 }
23
24 # Needed by puppet module
25 package { 'cronie':
26 ensure => 'latest',
27 }
28} 23}
29 24
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}