Browse Source

Workaround about inconsistent CRI-O YUM repo path on Kubic repos (#6101)

pull/6088/head
Florent Monbillard 4 years ago
committed by GitHub
parent
commit
218b2a5992
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions
  1. 4
      roles/container-engine/cri-o/tasks/crio_repo.yml
  2. 5
      roles/container-engine/cri-o/vars/centos-7.yml
  3. 5
      roles/container-engine/cri-o/vars/centos-8.yml

4
roles/container-engine/cri-o/tasks/crio_repo.yml

@ -31,9 +31,9 @@
yum_repository: yum_repository:
name: "devel_kubic_libcontainers_stable_cri-o_{{ crio_version }}" name: "devel_kubic_libcontainers_stable_cri-o_{{ crio_version }}"
description: 1.17 (CentOS_$releasever) description: 1.17 (CentOS_$releasever)
baseurl: "http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/{{ crio_version }}/CentOS_$releasever/"
baseurl: "http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/{{ crio_repo_path[crio_required_version] }}/CentOS_$releasever/"
gpgcheck: yes gpgcheck: yes
gpgkey: "http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/{{ crio_version }}/CentOS_$releasever/repodata/repomd.xml.key"
gpgkey: "http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/{{ crio_repo_path[crio_required_version] }}/CentOS_$releasever/repodata/repomd.xml.key"
when: ansible_distribution in ["CentOS"] when: ansible_distribution in ["CentOS"]
- name: Enable modular repos for CRI-O - name: Enable modular repos for CRI-O

5
roles/container-engine/cri-o/vars/centos-7.yml

@ -3,3 +3,8 @@
crio_packages: crio_packages:
- cri-o - cri-o
- oci-systemd-hook - oci-systemd-hook
crio_repo_path:
"1.18": "1.17:/1.17.4"
"1.17": "1.17:/1.17.4"
"1.16": "1.16"

5
roles/container-engine/cri-o/vars/centos-8.yml

@ -2,3 +2,8 @@
crio_packages: crio_packages:
- cri-o - cri-o
crio_repo_path:
"1.18": "1.18:/1.18.0"
"1.17": "1.17:/1.17.4"
"1.16": "1.16"
Loading…
Cancel
Save