Move unsetting of group and host env vars
The run-upgrade script sources 'scripts-library.sh' which sources 'openstack-ansible.rc'. The 'GROUP_VARS_PATH' and 'HOST_VARS_PATH' environment variables will have to be unset after the new 'openstack-ansible.rc' file is written so that their changed values from the previous release can take effect. Change-Id: I39ce5c3cf69bcbecea8e940bea2f0a133cfac07a
This commit is contained in:
parent
1a6c2b583e
commit
b9c839fdbb
@ -183,12 +183,6 @@ if [[ "${ACTION}" == "upgrade" ]]; then
|
|||||||
unset ANSIBLE_PACKAGE
|
unset ANSIBLE_PACKAGE
|
||||||
unset UPPER_CONSTRAINTS_FILE
|
unset UPPER_CONSTRAINTS_FILE
|
||||||
|
|
||||||
# Unset environment variables used by the override_folder
|
|
||||||
# plugin to set paths for group and host vars since the
|
|
||||||
# default locations have changed between Ocata and Pike.
|
|
||||||
unset GROUP_VARS_PATH
|
|
||||||
unset HOST_VARS_PATH
|
|
||||||
|
|
||||||
# Kick off the data plane tester
|
# Kick off the data plane tester
|
||||||
$(dirname "${0}")/../tests/data-plane-test.sh &
|
$(dirname "${0}")/../tests/data-plane-test.sh &
|
||||||
|
|
||||||
|
@ -164,6 +164,12 @@ function main {
|
|||||||
|
|
||||||
"${SCRIPTS_PATH}/bootstrap-ansible.sh"
|
"${SCRIPTS_PATH}/bootstrap-ansible.sh"
|
||||||
|
|
||||||
|
# Unset environment variables used by the override_folder
|
||||||
|
# plugin to set paths for group and host vars since the
|
||||||
|
# default locations have changed between Ocata and Pike.
|
||||||
|
unset GROUP_VARS_PATH
|
||||||
|
unset HOST_VARS_PATH
|
||||||
|
|
||||||
pushd ${MAIN_PATH}/playbooks
|
pushd ${MAIN_PATH}/playbooks
|
||||||
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/ansible_fact_cleanup.yml")
|
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/ansible_fact_cleanup.yml")
|
||||||
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/deploy-config-changes.yml")
|
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/deploy-config-changes.yml")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user