934a65bc34
openEuler 20.03-LTS-SP2 was out of date in May 2022. 22.03 LTS is the newest LTS version. It was release in March 2022 and will be maintained for 2 years. This patch upgrades the LTS version. It'll be used in Devstack, Kolla-ansible and so on in CI jobs. This patch also enables the YUM mirror to speed up the package download. Change-Id: Iba38570d96374226b924db3aca305f7571643823
91 lines
2.6 KiB
YAML
91 lines
2.6 KiB
YAML
- name: Set repo path
|
|
set_fact:
|
|
dib_gate_mirror_repos: "{{ ansible_user_dir }}/dib-mirror"
|
|
|
|
- debug: msg="zuul site mirror {{ zuul_site_mirror_fqdn }}"
|
|
- debug: msg="mirror_fqdn {{ mirror_fqdn }}"
|
|
|
|
- name: Create centos-minimal 7 directory
|
|
file:
|
|
path: "{{ dib_gate_mirror_repos }}/centos-minimal/7/yum.repos.d"
|
|
state: directory
|
|
mode: 0775
|
|
recurse: yes
|
|
|
|
- name: Install centos-minimal 7 repo files
|
|
template:
|
|
dest: "{{ dib_gate_mirror_repos }}/centos-minimal/7/yum.repos.d/dib-mirror-{{ item }}"
|
|
mode: 0644
|
|
src: "centos-minimal/7/{{ item }}.j2"
|
|
with_items:
|
|
- base.repo
|
|
- updates.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"
|
|
state: directory
|
|
mode: 0775
|
|
recurse: yes
|
|
|
|
- name: Install centos-minimal 9-stream repo files
|
|
template:
|
|
dest: "{{ dib_gate_mirror_repos }}/centos-minimal/9-stream/yum.repos.d/dib-mirror-{{ item }}"
|
|
mode: 0644
|
|
src: "centos-minimal/9-stream/{{ item }}.j2"
|
|
with_items:
|
|
- base.repo
|
|
- appstream.repo
|
|
|
|
- name: Create fedora-minimal directories
|
|
file:
|
|
path: "{{ dib_gate_mirror_repos }}/fedora-minimal/{{ item }}/yum.repos.d"
|
|
state: directory
|
|
mode: 0775
|
|
recurse: yes
|
|
# sometimes Fedora moves things and we need different versions; keep
|
|
# the loops for future use.
|
|
with_items:
|
|
- default
|
|
|
|
- name: Install fedora-minimal repo files
|
|
template:
|
|
dest: "{{ dib_gate_mirror_repos }}/fedora-minimal/{{ item[0] }}/yum.repos.d/dib-mirror-{{ item[1] }}"
|
|
mode: 0644
|
|
src: "fedora-minimal/{{ item[0] }}/{{ item[1] }}.j2"
|
|
with_nested:
|
|
- [ 'default' ]
|
|
- [ 'fedora.repo', 'fedora-updates.repo' ]
|
|
|
|
- name: Create openeuler-minimal 22.03-LTS directory
|
|
file:
|
|
path: "{{ dib_gate_mirror_repos }}/openeuler-minimal/22.03-LTS/yum.repos.d"
|
|
state: directory
|
|
mode: 0775
|
|
recurse: yes
|
|
|
|
- name: Install openeuler-minimal 22.03-LTS repo files
|
|
template:
|
|
dest: "{{ dib_gate_mirror_repos }}/openeuler-minimal/22.03-LTS/yum.repos.d/dib-mirror-{{ item }}"
|
|
mode: 0644
|
|
src: "openeuler-minimal/22.03-LTS/{{ item }}.j2"
|
|
with_items:
|
|
- openEuler.repo
|