Première version de la formule d'installation de Docker-CE sur CentOS
This commit is contained in:
25
softwares/dockerCE.sls
Normal file
25
softwares/dockerCE.sls
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{% if grains['os_family'] == 'RedHat' %}
|
||||||
|
{% if grains['os'] == 'CentOS' %}
|
||||||
|
Docker PreRequisites:
|
||||||
|
pkg.installed:
|
||||||
|
- pkgs:
|
||||||
|
- yum-utils
|
||||||
|
- device-mapper-persistent-data
|
||||||
|
- lvm2
|
||||||
|
|
||||||
|
Docker Add Repo:
|
||||||
|
cmd.run:
|
||||||
|
name: yum-config-manager -y --add-repo https://download.docker.com/linux/centos/docker-ce.repo
|
||||||
|
|
||||||
|
Docker CE installation:
|
||||||
|
pkg.installed:
|
||||||
|
- pkgs:
|
||||||
|
- docker-ce
|
||||||
|
# pkgrepo.managed:
|
||||||
|
# - name: deb https://download.jitsi.org stable/
|
||||||
|
# - file: /etc/apt/sources.list.d/jitsi-stable.list
|
||||||
|
# - key_url: https://download.jitsi.org/jitsi-key.gpg.key
|
||||||
|
# - enabled: 1
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
Reference in New Issue
Block a user