diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-09-10 12:45:41 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-09-10 21:39:23 +0200 |
commit | 503e4cf5c54e3fe4b802038e8917341c4ce803e5 (patch) | |
tree | ef5bbfe815a9a63487e3b68f957b8ff88aca8e2e /modules/base_installation/manifests | |
parent | 945ae444952f3322c4687059f0ba6b7308750feb (diff) | |
download | Puppet-503e4cf5c54e3fe4b802038e8917341c4ce803e5.tar.gz Puppet-503e4cf5c54e3fe4b802038e8917341c4ce803e5.tar.zst Puppet-503e4cf5c54e3fe4b802038e8917341c4ce803e5.zip |
Make use of LDAP variables to configure node
Diffstat (limited to 'modules/base_installation/manifests')
-rw-r--r-- | modules/base_installation/manifests/cronie.pp | 8 |
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 | } |