af97febb04
* Upgrade kubernetes to v1.12.0 Use kubeadm v1alpha3 config * Upgrade coredns and etcd * Upgrage docker to 18.06
56 lines
1.8 KiB
YAML
56 lines
1.8 KiB
YAML
---
|
|
docker_kernel_min_version: '0'
|
|
|
|
# https://docs.docker.com/engine/installation/linux/centos/#install-from-a-package
|
|
# https://download.docker.com/linux/centos/7/x86_64/stable/Packages/
|
|
# https://yum.dockerproject.org/repo/main/centos/7
|
|
# or do 'yum --showduplicates list docker-engine'
|
|
docker_versioned_pkg:
|
|
'latest': docker-ce
|
|
'1.11': docker-engine-1.11.2-1.el7.centos
|
|
'1.12': docker-engine-1.12.6-1.el7.centos
|
|
'1.13': docker-engine-1.13.1-1.el7.centos
|
|
'17.03': docker-ce-17.03.2.ce-1.el7.centos
|
|
'17.09': docker-ce-17.09.0.ce-1.el7.centos
|
|
'17.12': docker-ce-17.12.1.ce-1.el7.centos
|
|
'18.03': docker-ce-18.03.1.ce-1.el7.centos
|
|
'18.06': docker-ce-18.06.1.ce-3.el7
|
|
'stable': docker-ce-18.06.1.ce-3.el7
|
|
'edge': docker-ce-17.12.1.ce-1.el7.centos
|
|
|
|
docker_selinux_versioned_pkg:
|
|
'latest': docker-ce-selinux
|
|
'1.11': docker-engine-selinux-1.11.2-1.el7.centos
|
|
'1.12': docker-engine-selinux-1.12.6-1.el7.centos
|
|
'1.13': docker-engine-selinux-1.13.1-1.el7.centos
|
|
'17.03': docker-ce-selinux-17.03.2.ce-1.el7.centos
|
|
'stable': docker-ce-selinux-17.03.2.ce-1.el7.centos
|
|
'edge': docker-ce-selinux-17.03.2.ce-1.el7.centos
|
|
|
|
|
|
docker_pkgs_use_docker_ce:
|
|
- name: "{{ docker_selinux_versioned_pkg[docker_selinux_version | string] }}"
|
|
yum_conf: "{{ docker_yum_conf }}"
|
|
- name: "{{ docker_versioned_pkg[docker_version | string] }}"
|
|
yum_conf: "{{ docker_yum_conf }}"
|
|
|
|
docker_pkgs:
|
|
- name: "{{ docker_versioned_pkg[docker_version | string] }}"
|
|
yum_conf: "{{ docker_yum_conf }}"
|
|
|
|
docker_package_info:
|
|
pkg_mgr: yum
|
|
pkgs: |-
|
|
{%- if docker_version | version_compare('17.04', '<') -%}
|
|
{{ docker_pkgs_use_docker_ce }}
|
|
{%- else -%}
|
|
{{ docker_pkgs }}
|
|
{%- endif %}
|
|
|
|
docker_repo_key_info:
|
|
pkg_key: ''
|
|
repo_keys: []
|
|
|
|
docker_repo_info:
|
|
pkg_repo: ''
|
|
repos: []
|