Include the Ansible version variable when installing ara

When installing ARA the ansible version we're using needs to be provided
too. Without specifying the ansible version ARA has the ability to
install whatever it wants which could override our already set version
of ansible. If this happens we'll see very unexpected results in test.

Example: ara==0.14.0 will attempt to pull in ansible 2.4 when building
         a pike AIO which results in a failed build.
         https://github.com/openstack/openstack-ansible/blob/stable/pike/scripts/gate-check-commit.sh#L117

By providing the ANSIBLE_PACKAGE variable along with ARA we'll be able
to guard against issues caused by unbound constraints.

Change-Id: I2443242f285381037a0351ceb4e6d997271dbd4b
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter
2017-10-19 02:16:01 -05:00
parent 7ab9577ec1
commit 182dca9aac

View File

@@ -115,10 +115,10 @@ source "${OSA_CLONE_DIR}/scripts/bootstrap-ansible.sh"
# This is added *here* instead of bootstrap-ansible so it's used for CI purposes only.
if [[ -d "/tmp/openstack/ara" ]]; then
# This installs from a git checkout
/opt/ansible-runtime/bin/pip install /tmp/openstack/ara
/opt/ansible-runtime/bin/pip install /tmp/openstack/ara "${ANSIBLE_PACKAGE:-ansible}"
else
# This installs from pypi
/opt/ansible-runtime/bin/pip install ara
/opt/ansible-runtime/bin/pip install ara "${ANSIBLE_PACKAGE:-ansible}"
fi
# Dynamically retrieve the location of the ARA callback so we are able to find
# it on both py2 and py3