Improve leapfrog pluggability

The leapfrog is quite static, and a deployer can only run
scripts before and after the process.

By adding this, a deployer can alter the re-deploy behavior.
It can now run playbooks or shell scripts after the migrations,
and modify the re-deploy behavior (by adding more playbooks for
example).

Change-Id: Idde1e94d014fe4ca527568641a04c847a710d801
This commit is contained in:
Jean-Philippe Evrard 2017-05-23 10:18:44 +00:00
parent 325076bef6
commit 45b2786f0e
2 changed files with 6 additions and 1 deletions

View File

@ -89,5 +89,10 @@ RUN_TASKS+=("os-magnum-install.yml")
RUN_TASKS+=("os-sahara-install.yml")
RUN_TASKS+=("${UPGRADE_UTILS}/post-redeploy-cleanup.yml")
# Loads a shell script that can be used to modify
# the RUN_TASKS behavior.
if [ ! -z ${REDEPLOY_EXTRA_SCRIPT} ]; then
source ${REDEPLOY_EXTRA_SCRIPT}
fi
run_items "/opt/openstack-ansible"
### Run the redeploy tasks

View File

@ -31,6 +31,6 @@ source migrations.sh
source re-deploy.sh
echo -e "\n====================================================="
notice "All Leaps successful."
notice "All OpenStack-Ansible Leaps successful."
echo -e "=====================================================\n"
exit 0