summaryrefslogtreecommitdiffstats
path: root/fuel-plugin/pre_build_hook
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2016-11-23 15:23:54 +0000
committerMichael Polenchuk <mpolenchuk@mirantis.com>2016-11-23 15:23:54 +0000
commit860e71785b244ba8e7c5a39c7f738302c5a957c7 (patch)
treee7af0857c2d828e6dc009b71fbf9d690bbc197eb /fuel-plugin/pre_build_hook
parent8647dbbe9db84d71610f42cec6ff619783d99800 (diff)
Revert "Revert "[Fuel-plugin] Install kernel in post-deployment.""
This reverts commit 8647dbbe9db84d71610f42cec6ff619783d99800. Get required fix back in. Change-Id: Ia7ef03d4bcedce922c68098bc74207f37b0d15cb Signed-off-by: Michael Polenchuk <mpolenchuk@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 -