fuel-plugin-mellanox/post_install.sh
Rawan Herzallah 666cdb7c09 Changing plugin version to 8.0
With moving post install hook to fpb 3.0.0

Change-Id: I0e5bd1970ab341150f2bfa1f704481e5ffd8c3b2
2016-02-04 14:02:11 +02:00

20 lines
741 B
Bash

source /var/www/nailgun/plugins/mellanox-plugin*/scripts/common
if [ -d $FUEL_BOOTSTRAP_DIR ]; then
# Backup original bootstrap yaml and UID
$PLUGIN_SCRIPTS_DIR/backup_orig_bootstrap.py
# Add bootstrap scripts to Fuel Master
\cp $PLUGIN_SCRIPTS_DIR/reboot_bootstrap_nodes \
$PLUGIN_SCRIPTS_DIR/create_mellanox_vpi_bootstrap \
/sbin/
# Print post install message
echo " `tput bold`In order to create Bootstrap discovery image for detecting Mellanox Infiniband HW:"
echo " 1. Please build a new bootstrap ('create_mellanox_vpi_bootstrap can be used')."
echo " 2. Please reboot your old bootstrap nodes"
echo " ('reboot_bootstrap_nodes [-e environment_id] [-a] [-h]' can be used).`tput sgr0`"
fi