aboutsummaryrefslogtreecommitdiff
path: root/modules/base_installation/manifests/cronie.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/base_installation/manifests/cronie.pp')
-rw-r--r--modules/base_installation/manifests/cronie.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/base_installation/manifests/cronie.pp b/modules/base_installation/manifests/cronie.pp
index bcdd9a7..918bce3 100644
--- a/modules/base_installation/manifests/cronie.pp
+++ b/modules/base_installation/manifests/cronie.pp
@@ -10,12 +10,18 @@ class base_installation::cronie inherits base_installation {
10 owner => root, 10 owner => root,
11 group => root, 11 group => root,
12 } 12 }
13 cron { 'puppet-apply': 13 cron { 'puppet-pull-apply':
14 ensure => present, 14 ensure => present,
15 command => "cd $base_installation::puppet_code_path ; /usr/bin/git pull", 15 command => "cd $base_installation::puppet_code_path ; /usr/bin/git pull",
16 user => root, 16 user => root,
17 minute => '*/30', 17 minute => '*/30',
18 require => File['post-hook'], 18 require => File['post-hook'],
19 } 19 }
20 cron { 'puppet-apply':
21 ensure => present,
22 command => "cd $base_installation::puppet_code_path ; puppet apply --test $base_installation::puppet_code_path/manifests/site.pp",
23 user => root,
24 minute => '*/20'
25 }
20 } 26 }
21} 27}