From 6019a84fb31d22685084e17b2646559e46dbc25c Mon Sep 17 00:00:00 2001 From: Di Xu Date: Tue, 19 Dec 2017 16:40:14 +0800 Subject: [PATCH] Update docker package info for aarch64 Missing corresponding package docker-engine on aarch64, use docker instead. Change-Id: If5df58337746a81752b5d477e0473600eaee8381 --- roles/docker/tasks/main.yml | 1 + roles/docker/vars/redhat-aarch64.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 roles/docker/vars/redhat-aarch64.yml diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index f2ce70182..6cc9cf8e8 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -7,6 +7,7 @@ - "{{ ansible_distribution|lower }}-{{ ansible_distribution_release }}.yml" - "{{ ansible_distribution|lower }}-{{ ansible_distribution_major_version|lower|replace('/', '_') }}.yml" - "{{ ansible_distribution|lower }}.yml" + - "{{ ansible_os_family|lower }}-{{ ansible_architecture }}.yml" - "{{ ansible_os_family|lower }}.yml" - defaults.yml paths: diff --git a/roles/docker/vars/redhat-aarch64.yml b/roles/docker/vars/redhat-aarch64.yml new file mode 100644 index 000000000..0bad0593d --- /dev/null +++ b/roles/docker/vars/redhat-aarch64.yml @@ -0,0 +1,28 @@ +--- +docker_kernel_min_version: '0' + +# overide defaults, missing 17.03 for aarch64 +docker_version: '1.13' + +# http://mirror.centos.org/altarch/7/extras/aarch64/Packages/ +# or do 'yum --showduplicates list docker' +docker_versioned_pkg: + 'latest': docker + '1.12': docker-1.12.6-48.git0fdc778.el7 + '1.13': docker-1.13.1-63.git94f4240.el7 + +# https://docs.docker.com/engine/installation/linux/centos/#install-from-a-package +# http://mirror.centos.org/altarch/7/extras/aarch64/Packages/ + +docker_package_info: + pkg_mgr: yum + pkgs: + - name: "{{ docker_versioned_pkg[docker_version | string] }}" + +docker_repo_key_info: + pkg_key: '' + repo_keys: [] + +docker_repo_info: + pkg_repo: '' + repos: []