Check local and upstream repo for pip before using pypi

This patch adds an extra source to try and use before failing and
reverting to installing using the isolated mode (thereby installing
from pypi).

This should result in the install task succeeding on the first
attempt before the local repo exists, instead of always failing
and falling back to pypi.

Change-Id: I41821afb35c29984bd6372b6628aa3ca8a2a5715
This commit is contained in:
Jesse Pretorius 2016-02-09 15:52:33 +00:00 committed by Jesse Pretorius (odyssey4me)
parent 4337d82d3d
commit 4f30e8a941

View File

@ -59,11 +59,14 @@ galera_wsrep_address: "{{ ansible_ssh_host }}"
## Pip install
# Lock down pip to only a specific version of pip
# Ensure that the pip_install role tries the local repo before looking
# for pip in alternative locations
pip_get_pip_options: >
--no-index
--find-links="{{ openstack_repo_url }}/os-releases/{{ openstack_release }}"
--trusted-host {{ openstack_repo_url | netloc_no_port }}
--find-links "{{ openstack_repo_url }}/os-releases/{{ openstack_release }}"
--find-links "{{ repo_pip_default_index | netorigin }}/os-releases/{{ openstack_release }}"
--trusted-host "{{ openstack_repo_url | netloc_no_port }}"
--trusted-host "{{ repo_pip_default_index | netorigin }}"
pip_links:
- { name: "openstack_release", link: "{{ openstack_repo_url }}/os-releases/{{ openstack_release }}/" }