Merge "Use OpenStack-Infra mirrors for tests" into stable/queens
This commit is contained in:
commit
a8fb0d2d09
@ -116,3 +116,24 @@
|
||||
openstack_hosts_enable_yum_fastestmirror: no
|
||||
when:
|
||||
- nodepool.stat.exists | bool
|
||||
|
||||
- name: Discover the OpenStack-Infra pypi/wheel mirror
|
||||
shell: |
|
||||
source /etc/ci/mirror_info.sh
|
||||
echo ${NODEPOOL_PYPI_MIRROR}
|
||||
echo ${NODEPOOL_WHEEL_MIRROR}
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: _pypi_wheel_mirror
|
||||
delegate_to: localhost
|
||||
when:
|
||||
- nodepool.stat.exists | bool
|
||||
|
||||
- name: Enable the use of the OpenStack-Infra pypi/wheel mirror
|
||||
set_fact:
|
||||
pip_default_index: "{{ _pypi_wheel_mirror.stdout_lines[0] }}"
|
||||
pip_links:
|
||||
- name: "infra_wheel_mirror"
|
||||
link: "{{ _pypi_wheel_mirror.stdout_lines[1] }}"
|
||||
when:
|
||||
- nodepool.stat.exists | bool
|
||||
|
Loading…
Reference in New Issue
Block a user