summaryrefslogtreecommitdiffstats
path: root/fuel-plugin/pre_build_hook
diff options
context:
space:
mode:
authorMichal Skalski <mskalski@mirantis.com>2016-09-18 14:16:16 +0200
committerMichal Skalski <mskalski@mirantis.com>2016-09-18 14:30:33 +0200
commita10a10b373f17dc423800e6bb8d1a8e99450090d (patch)
tree972735bac4d8d5213f5d718f4e6e8f0a77f8aae8 /fuel-plugin/pre_build_hook
parentb8f6485d5a5c66f0fce566e59b8b5891c6a7f571 (diff)
[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 <mskalski@mirantis.com>
Diffstat (limited to 'fuel-plugin/pre_build_hook')
-rwxr-xr-xfuel-plugin/pre_build_hook8
1 files changed, 8 insertions, 0 deletions
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 -