Fix debian docker available version (#7668)
This commit is contained in:
parent
b46e751573
commit
54cda80018
8 changed files with 45 additions and 17 deletions
|
@ -1,4 +1,6 @@
|
||||||
---
|
---
|
||||||
|
containerd_version: 1.4.3
|
||||||
|
|
||||||
containerd_versioned_pkg:
|
containerd_versioned_pkg:
|
||||||
'latest': "{{ containerd_package }}"
|
'latest': "{{ containerd_package }}"
|
||||||
'1.3.7': "{{ containerd_package }}=1.3.7-1"
|
'1.3.7': "{{ containerd_package }}=1.3.7-1"
|
||||||
|
|
34
roles/container-engine/docker/vars/debian-stretch.yml
Normal file
34
roles/container-engine/docker/vars/debian-stretch.yml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
---
|
||||||
|
docker_version: 19.03
|
||||||
|
docker_cli_version: 19.03
|
||||||
|
|
||||||
|
# https://download.docker.com/linux/debian/
|
||||||
|
docker_versioned_pkg:
|
||||||
|
'latest': docker-ce
|
||||||
|
'18.09': docker-ce=5:18.09.9~3-0~debian-{{ ansible_distribution_release|lower }}
|
||||||
|
'19.03': docker-ce=5:19.03.15~3-0~debian-{{ ansible_distribution_release|lower }}
|
||||||
|
'stable': docker-ce=5:19.03.15~3-0~debian-{{ ansible_distribution_release|lower }}
|
||||||
|
'edge': docker-ce=5:19.03.15~3-0~debian-{{ ansible_distribution_release|lower }}
|
||||||
|
|
||||||
|
docker_cli_versioned_pkg:
|
||||||
|
'latest': docker-ce-cli
|
||||||
|
'18.09': docker-ce-cli=5:18.09.9~3-0~debian-{{ ansible_distribution_release|lower }}
|
||||||
|
'19.03': docker-ce-cli=5:19.03.15~3-0~debian-{{ ansible_distribution_release|lower }}
|
||||||
|
|
||||||
|
docker_package_info:
|
||||||
|
pkgs:
|
||||||
|
- "{{ containerd_versioned_pkg[containerd_version | string] }}"
|
||||||
|
- "{{ docker_cli_versioned_pkg[docker_cli_version | string] }}"
|
||||||
|
- "{{ docker_versioned_pkg[docker_version | string] }}"
|
||||||
|
|
||||||
|
docker_repo_key_info:
|
||||||
|
url: '{{ docker_debian_repo_gpgkey }}'
|
||||||
|
repo_keys:
|
||||||
|
- '{{ docker_debian_repo_repokey }}'
|
||||||
|
|
||||||
|
docker_repo_info:
|
||||||
|
repos:
|
||||||
|
- >
|
||||||
|
deb {{ docker_debian_repo_base_url }}
|
||||||
|
{{ ansible_distribution_release|lower }}
|
||||||
|
stable
|
|
@ -5,8 +5,8 @@ docker_versioned_pkg:
|
||||||
'18.09': docker-ce=5:18.09.9~3-0~debian-{{ ansible_distribution_release|lower }}
|
'18.09': docker-ce=5:18.09.9~3-0~debian-{{ ansible_distribution_release|lower }}
|
||||||
'19.03': docker-ce=5:19.03.15~3-0~debian-{{ ansible_distribution_release|lower }}
|
'19.03': docker-ce=5:19.03.15~3-0~debian-{{ ansible_distribution_release|lower }}
|
||||||
'20.10': docker-ce=5:20.10.6~3-0~debian-{{ ansible_distribution_release|lower }}
|
'20.10': docker-ce=5:20.10.6~3-0~debian-{{ ansible_distribution_release|lower }}
|
||||||
'stable': docker-ce=5:19.03.15~3-0~debian-{{ ansible_distribution_release|lower }}
|
'stable': docker-ce=5:20.10.6~3-0~debian-{{ ansible_distribution_release|lower }}
|
||||||
'edge': docker-ce=5:19.03.15~3-0~debian-{{ ansible_distribution_release|lower }}
|
'edge': docker-ce=5:20.10.6~3-0~debian-{{ ansible_distribution_release|lower }}
|
||||||
|
|
||||||
docker_cli_versioned_pkg:
|
docker_cli_versioned_pkg:
|
||||||
'latest': docker-ce-cli
|
'latest': docker-ce-cli
|
||||||
|
|
|
@ -5,8 +5,8 @@ docker_versioned_pkg:
|
||||||
'latest': docker-ce
|
'latest': docker-ce
|
||||||
'19.03': docker-ce-19.03.15-3.fc{{ ansible_distribution_major_version }}
|
'19.03': docker-ce-19.03.15-3.fc{{ ansible_distribution_major_version }}
|
||||||
'20.10': docker-ce-20.10.6-3.fc{{ ansible_distribution_major_version }}
|
'20.10': docker-ce-20.10.6-3.fc{{ ansible_distribution_major_version }}
|
||||||
'stable': docker-ce-19.03.15-3.fc{{ ansible_distribution_major_version }}
|
'stable': docker-ce-20.10.6-3.fc{{ ansible_distribution_major_version }}
|
||||||
'edge': docker-ce-19.03.15-3.fc{{ ansible_distribution_major_version }}
|
'edge': docker-ce-20.10.6-3.fc{{ ansible_distribution_major_version }}
|
||||||
|
|
||||||
docker_cli_versioned_pkg:
|
docker_cli_versioned_pkg:
|
||||||
'latest': docker-ce-cli
|
'latest': docker-ce-cli
|
||||||
|
|
|
@ -7,8 +7,8 @@ docker_versioned_pkg:
|
||||||
'18.09': docker-ce-18.09.9-3.el7
|
'18.09': docker-ce-18.09.9-3.el7
|
||||||
'19.03': docker-ce-19.03.15-3.el{{ ansible_distribution_major_version }}
|
'19.03': docker-ce-19.03.15-3.el{{ ansible_distribution_major_version }}
|
||||||
'20.10': docker-ce-20.10.6-3.el{{ ansible_distribution_major_version }}
|
'20.10': docker-ce-20.10.6-3.el{{ ansible_distribution_major_version }}
|
||||||
'stable': docker-ce-19.03.15-3.el{{ ansible_distribution_major_version }}
|
'stable': docker-ce-20.10.6-3.el{{ ansible_distribution_major_version }}
|
||||||
'edge': docker-ce-19.03.15-3.el{{ ansible_distribution_major_version }}
|
'edge': docker-ce-20.10.6-3.el{{ ansible_distribution_major_version }}
|
||||||
|
|
||||||
docker_cli_versioned_pkg:
|
docker_cli_versioned_pkg:
|
||||||
'latest': docker-ce-cli
|
'latest': docker-ce-cli
|
||||||
|
|
|
@ -5,8 +5,8 @@ docker_versioned_pkg:
|
||||||
'18.09': docker-ce=5:18.09.9~3-0~ubuntu-{{ ansible_distribution_release|lower }}
|
'18.09': docker-ce=5:18.09.9~3-0~ubuntu-{{ ansible_distribution_release|lower }}
|
||||||
'19.03': docker-ce=5:19.03.15~3-0~ubuntu-{{ ansible_distribution_release|lower }}
|
'19.03': docker-ce=5:19.03.15~3-0~ubuntu-{{ ansible_distribution_release|lower }}
|
||||||
'20.10': docker-ce=5:20.10.6~3-0~ubuntu-{{ ansible_distribution_release|lower }}
|
'20.10': docker-ce=5:20.10.6~3-0~ubuntu-{{ ansible_distribution_release|lower }}
|
||||||
'stable': docker-ce=5:19.03.15~3-0~ubuntu-{{ ansible_distribution_release|lower }}
|
'stable': docker-ce=5:20.10.6~3-0~ubuntu-{{ ansible_distribution_release|lower }}
|
||||||
'edge': docker-ce=5:19.03.15~3-0~ubuntu-{{ ansible_distribution_release|lower }}
|
'edge': docker-ce=5:20.10.6~3-0~ubuntu-{{ ansible_distribution_release|lower }}
|
||||||
|
|
||||||
docker_cli_versioned_pkg:
|
docker_cli_versioned_pkg:
|
||||||
'latest': docker-ce-cli
|
'latest': docker-ce-cli
|
||||||
|
|
|
@ -310,12 +310,7 @@ docker_plugins: []
|
||||||
etcd_kubeadm_enabled: false
|
etcd_kubeadm_enabled: false
|
||||||
|
|
||||||
# Containerd options
|
# Containerd options
|
||||||
containerd_version: >-
|
containerd_version: 1.4.4
|
||||||
{%- if ansible_os_family == "Debian" and ansible_distribution_release == "stretch" -%}
|
|
||||||
1.4.3
|
|
||||||
{%- else -%}
|
|
||||||
1.4.4
|
|
||||||
{%- endif -%}
|
|
||||||
containerd_use_systemd_cgroup: true
|
containerd_use_systemd_cgroup: true
|
||||||
|
|
||||||
# Settings for containerized control plane (etcd/kubelet/secrets)
|
# Settings for containerized control plane (etcd/kubelet/secrets)
|
||||||
|
|
|
@ -7,6 +7,3 @@ mode: default
|
||||||
kube_network_plugin: calico
|
kube_network_plugin: calico
|
||||||
deploy_netchecker: true
|
deploy_netchecker: true
|
||||||
dns_min_replicas: 1
|
dns_min_replicas: 1
|
||||||
|
|
||||||
# Only docker package 19.03 for Debian9
|
|
||||||
docker_version: '19.03'
|
|
||||||
|
|
Loading…
Reference in a new issue