Merge "Add pypi_fqdn to differentiate it package mirrors"
This commit is contained in:
commit
e21bed0c48
@ -7,10 +7,15 @@ An ansible role to configure services to use mirrors.
|
|||||||
|
|
||||||
The base host for mirror servers.
|
The base host for mirror servers.
|
||||||
|
|
||||||
|
.. zuul:rolevar:: pypi_fqdn
|
||||||
|
:default: {{ mirror_fqdn }}
|
||||||
|
|
||||||
|
The base host for PyPi mirror server.
|
||||||
|
|
||||||
.. zuul:rolevar:: pypi_mirror
|
.. zuul:rolevar:: pypi_mirror
|
||||||
|
|
||||||
URL to override the generated pypi mirror url based on
|
URL to override the generated pypi mirror url based on
|
||||||
:zuul:rolevar:`configure-mirrors.mirror_fqdn`.
|
:zuul:rolevar:`configure-mirrors.pypi_fqdn`.
|
||||||
|
|
||||||
.. zuul:rolevar:: set_apt_mirrors_trusted
|
.. zuul:rolevar:: set_apt_mirrors_trusted
|
||||||
:default: False
|
:default: False
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
mirror_fqdn: "{{ zuul_site_mirror_fqdn|default(omit) }}"
|
mirror_fqdn: "{{ zuul_site_mirror_fqdn|default(omit) }}"
|
||||||
pypi_mirror: "http://{{ mirror_fqdn }}/pypi/simple"
|
pypi_fqdn: "{{ mirror_fqdn }}"
|
||||||
|
pypi_mirror: "http://{{ pypi_fqdn }}/pypi/simple"
|
||||||
set_apt_mirrors_trusted: False
|
set_apt_mirrors_trusted: False
|
||||||
wheel_mirror: "http://{{ mirror_fqdn }}/wheel/{{ ansible_distribution | lower }}-{{ ansible_distribution_version }}-{{ ansible_architecture | lower }}"
|
wheel_mirror: "http://{{ mirror_fqdn }}/wheel/{{ ansible_distribution | lower }}-{{ ansible_distribution_version }}-{{ ansible_architecture | lower }}"
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
[global]
|
[global]
|
||||||
timeout = 60
|
timeout = 60
|
||||||
index-url = {{ pypi_mirror }}
|
index-url = {{ pypi_mirror }}
|
||||||
trusted-host = {{ mirror_fqdn }}
|
trusted-host = {{ pypi_fqdn }}
|
||||||
extra-index-url = {{ wheel_mirror }}
|
extra-index-url = {{ wheel_mirror }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user