Reorganisation installation Docker
This commit is contained in:
21
softwares/dockerCE-Centos.sls
Normal file
21
softwares/dockerCE-Centos.sls
Normal file
@@ -0,0 +1,21 @@
|
||||
{% if grains['kernel'] == 'Linux' %}
|
||||
{% if grains['os'] == 'CentOS' %}
|
||||
CentOS Docker PreRequisites:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
- yum-utils
|
||||
- device-mapper-persistent-data
|
||||
- lvm2
|
||||
|
||||
CentOS Docker Add Repo:
|
||||
cmd.run:
|
||||
- name: yum-config-manager -y --add-repo 'https://download.docker.com/linux/centos/docker-ce.repo'
|
||||
|
||||
CentOS Docker CE installation:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
- docker-ce
|
||||
- docker-compose
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user