zuul-jobs/roles/configure-mirrors/templates/etc/pip.conf.j2
Bogdan Dobrelya 77bc616dc5 Add pypi_fqdn to differentiate it package mirrors
There is mirror_fqdn that, if defined, overrides mirrors used for
packages and also mirrors for pypi. This is generally incorrect,
if one wants to use different mirrors for packages vs pypi eggs.

Add pypi_fqdn that defaults to mirror_fqdn, which allows users
to go with a custom pypi_mirror. Make pypi trusting the given
pypi_fqdn value instead of generally unrelated mirror_fqdn.

Change-Id: I12975b57951699351cfc0d40beaeb7c703651dd0
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2019-11-28 09:00:07 +01:00

7 lines
144 B
Django/Jinja

# {{ ansible_managed }}
[global]
timeout = 60
index-url = {{ pypi_mirror }}
trusted-host = {{ pypi_fqdn }}
extra-index-url = {{ wheel_mirror }}