---
# Copyright 2018, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

_zun_docker_package_version: "5:20.10.24~*"
_zun_containerd_package_version: "1.6.20-1"

_zun_architecture_mapping:
  x86_64: amd64
  ppc64le: ppc64el
  s390x: s390x
  armv7l: armhf
  aarch64: arm64

zun_docker_repo:
  - name: "docker-ce"
    suites: "{{ ansible_facts['distribution_release'] | lower }}"
    uris: "https://download.docker.com/linux/{{ ansible_facts['distribution'] | lower }}"
    signed_by: "{{ lookup('file', 'gpg/0EBFCD88') }}"
    components: stable
    architectures: "{{ _zun_architecture_mapping.get(ansible_facts['architecture']) }}"
    state: present

# Common apt packages
zun_distro_packages:
  - ca-certificates
  - curl
  - git
  - libsystemd-dev
  - software-properties-common

zun_distro_compute_packages:
  - containerd.io
  - docker-ce-cli
  - docker-ce
  - pciutils
  - numactl
  - multipath-tools

zun_docker_groupname: docker

## APT Cache options
cache_timeout: 600