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 --- bin/install_script.sh | 6 +++--- modules/base_installation/manifests/cronie.pp | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/install_script.sh b/bin/install_script.sh index d9d3808..49a737f 100755 --- a/bin/install_script.sh +++ b/bin/install_script.sh @@ -173,9 +173,9 @@ cat > $ARCH_INSTALL_SCRIPT < $ARCH_PUPPET_CONFIGURATION_SCRIPT < $ARCH_HOST_PUPPET_CONFIGURATION_SCRIPT < 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