From 45d151a69dd1a888e79eef4be7ffb9a05452a13d Mon Sep 17 00:00:00 2001 From: Dmitry Chusovitin Date: Mon, 11 Nov 2019 13:41:41 +0300 Subject: [PATCH] containerd installation on Debian (#5326) --- .../containerd/defaults/main.yml | 6 ++++ .../containerd/vars/debian.yml | 31 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 roles/container-engine/containerd/vars/debian.yml diff --git a/roles/container-engine/containerd/defaults/main.yml b/roles/container-engine/containerd/defaults/main.yml index 1d343fc00..d3f8e986b 100644 --- a/roles/container-engine/containerd/defaults/main.yml +++ b/roles/container-engine/containerd/defaults/main.yml @@ -40,3 +40,9 @@ containerd_ubuntu_repo_base_url: "https://download.docker.com/linux/ubuntu" containerd_ubuntu_repo_gpgkey: 'https://download.docker.com/linux/ubuntu/gpg' containerd_ubuntu_repo_repokey: '9DC858229FC7DD38854AE2D88D81803C0EBFCD88' containerd_ubuntu_repo_component: 'stable' + +# Debian docker-ce repo +containerd_debian_repo_base_url: 'https://download.docker.com/linux/debian' +containerd_debian_repo_gpgkey: 'https://download.docker.com/linux/debian/gpg' +containerd_debian_repo_repokey: '9DC858229FC7DD38854AE2D88D81803C0EBFCD88' +containerd_debian_repo_component: 'stable' diff --git a/roles/container-engine/containerd/vars/debian.yml b/roles/container-engine/containerd/vars/debian.yml new file mode 100644 index 000000000..558517d20 --- /dev/null +++ b/roles/container-engine/containerd/vars/debian.yml @@ -0,0 +1,31 @@ +--- + +containerd_versioned_pkg: + 'latest': "{{ containerd_package }}" + '1.2.4': "{{ containerd_package }}=1.2.4-1" + '1.2.5': "{{ containerd_package }}=1.2.5-1" + '1.2.6': "{{ containerd_package }}=1.2.6-3" + 'stable': "{{ containerd_package }}=1.2.4-1" + 'edge': "{{ containerd_package }}=1.2.4-1" + +containerd_package_info: + pkg_mgr: apt + pkgs: + - name: "{{ containerd_versioned_pkg[containerd_version | string] }}" + force: false + +containerd_repo_key_info: + pkg_key: apt_key + url: '{{ containerd_debian_repo_gpgkey }}' + repo_keys: + - '{{ containerd_debian_repo_repokey }}' + +containerd_repo_info: + pkg_repo: apt_repository + repos: + - > + deb {{ containerd_debian_repo_base_url }} + {{ ansible_distribution_release|lower }} + {{ containerd_debian_repo_component }} + +runc_binary: /usr/bin/runc