Merge "Adds option to enable ARA plugin install" into stable/queens

This commit is contained in:
Zuul 2018-11-11 16:19:41 +00:00 committed by Gerrit Code Review
commit 983a324a3b
2 changed files with 10 additions and 3 deletions

View File

@ -26,6 +26,8 @@ export ANSIBLE_PACKAGE=${ANSIBLE_PACKAGE:-"ansible==2.4.6.0"}
export ANSIBLE_ROLE_FILE=${ANSIBLE_ROLE_FILE:-"ansible-role-requirements.yml"} export ANSIBLE_ROLE_FILE=${ANSIBLE_ROLE_FILE:-"ansible-role-requirements.yml"}
export SSH_DIR=${SSH_DIR:-"/root/.ssh"} export SSH_DIR=${SSH_DIR:-"/root/.ssh"}
export DEBIAN_FRONTEND=${DEBIAN_FRONTEND:-"noninteractive"} export DEBIAN_FRONTEND=${DEBIAN_FRONTEND:-"noninteractive"}
# check whether to install the ARA callback plugin
export SETUP_ARA=${SETUP_ARA:-"false"}
# Set the role fetch mode to any option [galaxy, git-clone] # Set the role fetch mode to any option [galaxy, git-clone]
export ANSIBLE_ROLE_FETCH_MODE=${ANSIBLE_ROLE_FETCH_MODE:-git-clone} export ANSIBLE_ROLE_FETCH_MODE=${ANSIBLE_ROLE_FETCH_MODE:-git-clone}
@ -288,6 +290,11 @@ chmod +x /usr/local/bin/openstack-ansible
echo "openstack-ansible wrapper created." echo "openstack-ansible wrapper created."
# Install and export the ARA callback plugin
if [ "${SETUP_ARA}" == "true" ]; then
setup_ara
fi
# If the Ansible plugins are in the old location remove them. # If the Ansible plugins are in the old location remove them.
[[ -d "/etc/ansible/plugins" ]] && rm -rf "/etc/ansible/plugins" [[ -d "/etc/ansible/plugins" ]] && rm -rf "/etc/ansible/plugins"

View File

@ -55,6 +55,9 @@ export ACTION=${2:-"deploy"}
# is created. The checkout must always be N-1. # is created. The checkout must always be N-1.
export UPGRADE_SOURCE_BRANCH=${UPGRADE_SOURCE_BRANCH:-'stable/pike'} export UPGRADE_SOURCE_BRANCH=${UPGRADE_SOURCE_BRANCH:-'stable/pike'}
# enable the ARA callback plugin
export SETUP_ARA=true
## Change branch for Upgrades ------------------------------------------------ ## Change branch for Upgrades ------------------------------------------------
# If the action is to upgrade, then store the current SHA, # If the action is to upgrade, then store the current SHA,
# checkout the source SHA before executing the greenfield # checkout the source SHA before executing the greenfield
@ -103,9 +106,6 @@ fi
# Bootstrap Ansible # Bootstrap Ansible
source "${OSA_CLONE_DIR}/scripts/bootstrap-ansible.sh" source "${OSA_CLONE_DIR}/scripts/bootstrap-ansible.sh"
# Install and export the ARA callback plugin
setup_ara
# Log some data about the instance and the rest of the system # Log some data about the instance and the rest of the system
log_instance_info log_instance_info