Use UCA mirror in CI for ubuntu

The previously used variable was removed [1] so the local mirror
in CI has not been used.

[1] https://opendev.org/openstack/openstack-ansible-openstack_hosts/src/branch/master/releasenotes/notes/apt_repo-097cb34c12e60207.yaml

Change-Id: If7b77b76b192b2dec516375f834a19b0e09afbfe
This commit is contained in:
Jonathan Rosser 2024-07-09 17:35:40 +01:00
parent 3c8dc49c60
commit 47c57267ea

View File

@ -76,8 +76,10 @@
block:
- name: Configure the OpenStack-Infra mirrors
vars:
_ubuntu_vars:
apt_repo_url: "{{ nodepool_vars.NODEPOOL_UCA_MIRROR }}"
_ubuntu_conditional_vars: "{{ (ansible_facts['distribution'] == 'Ubuntu') | ternary(_ubuntu_vars, {}) }}"
nodepool_overrides:
uca_apt_repo_url: "{{ nodepool_vars.NODEPOOL_UCA_MIRROR }}"
openstack_hosts_centos_mirror_url: "{{ nodepool_vars.NODEPOOL_CENTOS_MIRROR }}"
centos_epel_mirror: "{{ nodepool_vars.NODEPOOL_EPEL_MIRROR }}"
galera_repo_host: "{{ nodepool_vars.NODEPOOL_MIRROR_HOST }}:8080"
@ -94,7 +96,7 @@
# repo: "deb http://{{ nodepool_vars.NODEPOOL_MIRROR_HOST }}/ceph-deb-reef {{ ansible_facts['distribution_release'] }} main"
copy:
dest: /etc/openstack_deploy/user_openstackci.yml
content: "{{ nodepool_overrides | to_nice_yaml }}"
content: "{{ (nodepool_overrides | combine(_ubuntu_conditional_vars)) | to_nice_yaml }}"
- name: Set the package cache timeout to 60 mins in OpenStack-CI
set_fact: