add containerd support for Amazon Linux 2 (#7595)

This commit is contained in:
Cristian Calin 2021-05-11 05:25:36 +03:00 committed by GitHub
parent d5660cd37c
commit d90baa8601
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 2 deletions

View 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 }}"

View file

@ -31,4 +31,4 @@
dest: "{{ yum_repo_dir }}/containerd.repo"
when:
- ansible_os_family == "RedHat"
- ansible_distribution != "Fedora"
- ansible_distribution not in ["Fedora", "Amazon"]

View file

@ -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 }}"

View file

@ -0,0 +1,5 @@
---
containerd_package_info:
enablerepo: "amzn2extra-docker"
pkgs:
- "{{ containerd_versioned_pkg[containerd_version | string] }}"