From a10a10b373f17dc423800e6bb8d1a8e99450090d Mon Sep 17 00:00:00 2001 From: Michal Skalski Date: Sun, 18 Sep 2016 14:16:16 +0200 Subject: [Fuel-plugin] Install kernel in post-deployment. Install kernel and reboot compute nodes in post-deployment phase when there is less chance to interfere with other tasks. Implement Michael's suggestion to use reboot puppet module. Change-Id: I83867e5e2752c39d2b69c950e3e475d43de04466 Signed-off-by: Michal Skalski --- fuel-plugin/pre_build_hook | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'fuel-plugin/pre_build_hook') diff --git a/fuel-plugin/pre_build_hook b/fuel-plugin/pre_build_hook index a3c883283..259862f8f 100755 --- a/fuel-plugin/pre_build_hook +++ b/fuel-plugin/pre_build_hook @@ -4,6 +4,10 @@ set -eux BUILD_FOR=${BUILD_FOR:-ubuntu} DIR="$(dirname `readlink -f $0`)" +MODULES="${DIR}/deployment_scripts/puppet/modules" + +REBOOT_VER='1.2.1' +REBOOT_URL="https://github.com/puppetlabs/puppetlabs-reboot/archive/${REBOOT_VER}.tar.gz" function build_pkg { case $1 in @@ -25,3 +29,7 @@ for system in $BUILD_FOR do build_pkg $system done + +rm -rf ${MODULES}/reboot +mkdir -p ${MODULES}/reboot +wget -qO- ${REBOOT_URL} | tar -C ${MODULES}/reboot --strip-components=1 -zxvf - -- cgit 1.2.3-korg