Browse Source

Use OpenDev mirrors for 8-stream CI builds

Change-Id: Ief335cf80fb5d796f6c31f6956e9bc5f790eca93
changes/78/820978/5
Ian Wienand 6 months ago
parent
commit
0bf80735a7
  1. 1
      diskimage_builder/elements/centos-minimal/test-elements/8-aarch64-build-succeeds/element-deps
  2. 1
      diskimage_builder/elements/centos-minimal/test-elements/8-stream-aarch64-build-succeeds/element-deps
  3. 16
      roles/dib-setup-gate-mirrors/tasks/main.yaml
  4. 5
      roles/dib-setup-gate-mirrors/templates/centos-minimal/8-stream/appstream.repo.j2
  5. 5
      roles/dib-setup-gate-mirrors/templates/centos-minimal/8-stream/base.repo.j2

1
diskimage_builder/elements/centos-minimal/test-elements/8-aarch64-build-succeeds/element-deps

@ -1,2 +1,3 @@
block-device-efi
openstack-ci-mirrors
vm

1
diskimage_builder/elements/centos-minimal/test-elements/8-stream-aarch64-build-succeeds/element-deps

@ -1,2 +1,3 @@
block-device-efi
openstack-ci-mirrors
vm

16
roles/dib-setup-gate-mirrors/tasks/main.yaml

@ -39,6 +39,22 @@
- appstream.repo
- extras.repo
- name: Create centos-minimal 8-stream directory
file:
path: "{{ dib_gate_mirror_repos }}/centos-minimal/8-stream/yum.repos.d"
state: directory
mode: 0775
recurse: yes
- name: Install centos-minimal 8-stream repo files
template:
dest: "{{ dib_gate_mirror_repos }}/centos-minimal/8-stream/yum.repos.d/dib-mirror-{{ item }}"
mode: 0644
src: "centos-minimal/8-stream/{{ item }}.j2"
with_items:
- base.repo
- appstream.repo
- name: Create centos-minimal 9-stream directory
file:
path: "{{ dib_gate_mirror_repos }}/centos-minimal/9-stream/yum.repos.d"

5
roles/dib-setup-gate-mirrors/templates/centos-minimal/8-stream/appstream.repo.j2

@ -0,0 +1,5 @@
[Stream-AppStream]
name=CentOS-Stream - AppStream
baseurl=https://{{ mirror_fqdn }}/centos/$releasever/AppStream/$basearch/os/
gpgcheck=0

5
roles/dib-setup-gate-mirrors/templates/centos-minimal/8-stream/base.repo.j2

@ -0,0 +1,5 @@
[Stream-BaseOS]
name=CentOS-Stream - Base
baseurl=https://{{ mirror_fqdn }}/centos/$releasever/BaseOS/$basearch/os/
gpgcheck=0
Loading…
Cancel
Save