From 428fcf14be3943fc01d234a5e622c7f8706bcb73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 18 Feb 2018 22:54:05 +0100 Subject: Make puppet apply non-critical part at reboot --- modules/base_installation/manifests/cronie.pp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules') diff --git a/modules/base_installation/manifests/cronie.pp b/modules/base_installation/manifests/cronie.pp index 918bce3..4df0e37 100644 --- a/modules/base_installation/manifests/cronie.pp +++ b/modules/base_installation/manifests/cronie.pp @@ -23,5 +23,11 @@ class base_installation::cronie inherits base_installation { user => root, minute => '*/20' } + cron { 'puppet-apply-reboot': + ensure => present, + command => "cd $base_installation::puppet_code_path ; puppet apply --test $base_installation::puppet_code_path/manifests/site.pp", + user => root, + special => "reboot" + } } } -- cgit v1.2.3