]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-container-common: modify requirement flow
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 16 Apr 2019 13:33:02 +0000 (09:33 -0400)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Fri, 19 Apr 2019 04:07:22 +0000 (04:07 +0000)
commitf77091751726e97085ee0c712ad3b7b5374a940b
treed0daaaa694466f3f942d01eaf11d70f5c08855fc
parentf1e04835f42f2687022dccd082bd7ceb46215bb8
ceph-container-common: modify requirement flow

Until now it was not possible to install a specific container package
because it was somehow hardcoded.
This patch allows to override the container package name (docker.io
vs docker-ce) and refacts the package installation. This could be
achieve via the container_package_name variable.
Instead of using one task per distribution we can set the package and
service name in vars. This allows to have a unified package task.
Also refactorize the debian_prerequisites tasks because the content
was outdated.

https://docs.docker.com/install/linux/docker-ce/debian/
https://docs.docker.com/install/linux/docker-ce/ubuntu/

Resolves: #3609

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 8105a1cefb065b8a519de0aad1c89c8c887ee2a4)
roles/ceph-container-common/tasks/pre_requisites/debian_prerequisites.yml
roles/ceph-container-common/tasks/pre_requisites/prerequisites.yml
roles/ceph-container-common/vars/Debian.yml [new file with mode: 0644]
roles/ceph-container-common/vars/RedHat-8.yml [new file with mode: 0644]
roles/ceph-container-common/vars/RedHat.yml [new file with mode: 0644]
roles/ceph-container-common/vars/Ubuntu-16.yml [new file with mode: 0644]
roles/ceph-container-common/vars/Ubuntu-18.yml [new file with mode: 0644]