Rename mirror_host to mirror_fqdn in configure-mirrors

It make more sense to revert to mirror_fqdn, since it is a FQDN.

Change-Id: I4a0749b64a71e551e4fbea5b416b46d2d6433d0b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-08-03 14:53:57 -04:00
parent 05e6980baa
commit e59abec7a3
7 changed files with 9 additions and 9 deletions

View File

@ -2,7 +2,7 @@
roles: roles:
- role: configure-mirrors - role: configure-mirrors
# TODO(mordred) When we have site-local variables, these should go there # TODO(mordred) When we have site-local variables, these should go there
mirror_host: "mirror.{{ nodepool.region | lower }}.{{ nodepool.provider | lower }}.openstack.org" mirror_fqdn: "mirror.{{ nodepool.region | lower }}.{{ nodepool.provider | lower }}.openstack.org"
- role: bindep - role: bindep
bindep_profile: test bindep_profile: test
bindep_dir: "{{ zuul_work_dir }}" bindep_dir: "{{ zuul_work_dir }}"

View File

@ -2,8 +2,8 @@ An ansible role to configure services to use mirrors.
Role Variables Role Variables
mirror_host mirror_fqdn
The base host for mirror servers The base host for mirror servers
pypi_mirror pypi_mirror
URL to override the generated pypi mirror url based on mirror_host URL to override the generated pypi mirror url based on mirror_fqdn

View File

@ -1 +1 @@
pypi_mirror: "http://{{ mirror_host }}/pypi/simple" pypi_mirror: "http://{{ mirror_fqdn }}/pypi/simple"

View File

@ -1,2 +1,2 @@
- include: mirror.yaml - include: mirror.yaml
when: mirror_host is defined when: mirror_fqdn is defined

View File

@ -1,4 +1,4 @@
# {{ ansible_managed }} # {{ ansible_managed }}
[easy_install] [easy_install]
index_url = {{ pypi_mirror }} index_url = {{ pypi_mirror }}
allow_hosts = {{ mirror_host }} allow_hosts = {{ mirror_fqdn }}

View File

@ -2,5 +2,5 @@
[global] [global]
timeout = 60 timeout = 60
index-url = {{ pypi_mirror }} index-url = {{ pypi_mirror }}
trusted-host = {{ mirror_host }} trusted-host = {{ mirror_fqdn }}
extra-index-url = {{ wheel_mirror }} extra-index-url = {{ wheel_mirror }}

View File

@ -1,2 +1,2 @@
wheel_mirror: "http://{{ mirror_host }}/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 }}"
package_mirror: "http://{{ mirror_host }}/ubuntu" package_mirror: "http://{{ mirror_fqdn }}/ubuntu"