5d01b68574
Out-of-the-box installs of centos-8 do not enable the PowerTools or HighAvailability repositories. Debian/Ubuntu do not enable the backports repository by default. Having these repos enabled by default in CI has led to merging broken code for OpenStack deployment tooling which is attempting to also manage the presence/absence of these repositories. It is challenging to remove these repositories on the running node because the repo URL (rather than just the name) is required as input to the apt_repository and yum_repository ansible modules. This patch adds a role default variable to configure-mirrors to allow a job to opt out of these extra repositories. The default is set to 'True' to allow existing jobs to work as before. Change-Id: I74b9de7092f182c942a58ac7a46b9fbd791889de
14 lines
563 B
YAML
14 lines
563 B
YAML
set_apt_mirrors_trusted: False
|
|
mirror_fqdn: "{{ zuul_site_mirror_fqdn|default(omit) }}"
|
|
pypi_fqdn: "{{ mirror_fqdn }}"
|
|
mirror_use_ssl: False
|
|
http_or_https: >-
|
|
{%- if mirror_use_ssl and ansible_distribution_release not in ['xenial', 'stretch'] -%}
|
|
https
|
|
{%- else -%}
|
|
http
|
|
{%- endif -%}
|
|
pypi_mirror: "{{ http_or_https }}://{{ pypi_fqdn }}/pypi/simple"
|
|
wheel_mirror: "{{ http_or_https }}://{{ mirror_fqdn }}/wheel/{{ ansible_distribution | lower }}-{{ ansible_distribution_version }}-{{ ansible_architecture | lower }}"
|
|
configure_mirrors_extra_repos: True
|