9471b8c42b
We should offer the option of https in addition to http in our configure-mirrors role as users may want to consume mirrors using https. This has become more viable in recent years with the releases of Debian Buster and Ubuntu Bionic supporting it out of the box. Change-Id: I747c1a379dfce9469e643d7fa199c8e8554f5289
13 lines
527 B
YAML
13 lines
527 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 }}"
|