From 503e4cf5c54e3fe4b802038e8917341c4ce803e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 10 Sep 2017 12:45:41 +0200 Subject: Make use of LDAP variables to configure node --- modules/base_installation/manifests/cronie.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules/base_installation/manifests') 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 { owner => root, group => root, } - cron { 'puppet-apply': + cron { 'puppet-pull-apply': ensure => present, command => "cd $base_installation::puppet_code_path ; /usr/bin/git pull", user => root, minute => '*/30', require => File['post-hook'], } + cron { 'puppet-apply': + ensure => present, + command => "cd $base_installation::puppet_code_path ; puppet apply --test $base_installation::puppet_code_path/manifests/site.pp", + user => root, + minute => '*/20' + } } } -- cgit v1.2.3