add containerd support for Amazon Linux 2 (#7595)
This commit is contained in:
parent
d5660cd37c
commit
d90baa8601
4 changed files with 16 additions and 2 deletions
9
roles/container-engine/containerd-common/vars/amazon.yml
Normal file
9
roles/container-engine/containerd-common/vars/amazon.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
containerd_package: containerd
|
||||
containerd_versioned_pkg:
|
||||
'latest': "{{ containerd_package }}"
|
||||
'1.3.2': "{{ containerd_package }}-1.3.2-1.amzn{{ ansible_distribution_major_version }}"
|
||||
'1.4.1': "{{ containerd_package }}-1.4.1-2.amzn{{ ansible_distribution_major_version }}"
|
||||
'1.4.4': "{{ containerd_package }}-1.4.4-1.amzn{{ ansible_distribution_major_version }}"
|
||||
'stable': "{{ containerd_package }}-1.4.4-1.amzn{{ ansible_distribution_major_version }}"
|
||||
'edge': "{{ containerd_package }}-1.4.4-1.amzn{{ ansible_distribution_major_version }}"
|
|
@ -31,4 +31,4 @@
|
|||
dest: "{{ yum_repo_dir }}/containerd.repo"
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution != "Fedora"
|
||||
- ansible_distribution not in ["Fedora", "Amazon"]
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
fail:
|
||||
msg: "{{ ansible_distribution }} is not supported by containerd."
|
||||
when:
|
||||
- not ansible_distribution in ["CentOS", "OracleLinux", "RedHat", "Ubuntu", "Debian", "Fedora", "AlmaLinux"]
|
||||
- not ansible_distribution in ["CentOS", "OracleLinux", "RedHat", "Ubuntu", "Debian", "Fedora", "AlmaLinux", "Amazon"]
|
||||
|
||||
- name: gather os specific variables
|
||||
include_vars: "{{ item }}"
|
||||
|
|
5
roles/container-engine/containerd/vars/amazon.yml
Normal file
5
roles/container-engine/containerd/vars/amazon.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
containerd_package_info:
|
||||
enablerepo: "amzn2extra-docker"
|
||||
pkgs:
|
||||
- "{{ containerd_versioned_pkg[containerd_version | string] }}"
|
Loading…
Reference in a new issue