This commit is contained in:
2018-05-12 14:08:26 +02:00
parent ae5a72668a
commit 0652cf9aa6

View File

@@ -28,6 +28,7 @@
- name: docker - name: docker
- addusers: - addusers:
- iwan - iwan
{% elif grains['os'] == 'Fedora' %} {% elif grains['os'] == 'Fedora' %}
Fedora Docker installation: Fedora Docker installation:
pkg.installed: pkg.installed:
@@ -72,45 +73,45 @@
{% elif grains['os'] == 'Ubuntu' %} {% elif grains['os'] == 'Ubuntu' %}
{% if grains['osrelease'] == '18.04' %} {% if grains['osrelease'] == '18.04' %}
Ubuntu Docker Install Ubuntu 18.04: Ubuntu Docker Install Ubuntu 18.04:
dpkg.installed: dpkg.installed:
- pkgs: - pkgs:
- docker - docker
- docker-compose - docker-compose
{% else %} {% else %}
{% set UBUVER = salt['grains.get']('oscodename') %} {% set UBUVER = salt['grains.get']('oscodename') %}
Ubuntu Docker PreRequisites: Ubuntu Docker PreRequisites:
pkg.installed: pkg.installed:
- pkgs: - pkgs:
- apt-transport-https - apt-transport-https
- ca-certificates - ca-certificates
- curl - curl
- gnupg2 - gnupg2
Ubuntu Docker Add Repo: Ubuntu Docker Add Repo:
pkgrepo.managed: pkgrepo.managed:
- name: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{UBUVER}} stable - name: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{UBUVER}} stable
- file: /etc/apt/sources.list.d/docker-ce.list - file: /etc/apt/sources.list.d/docker-ce.list
- enable: 1 - enable: 1
- key_url: https://download.docker.com/linux/ubuntu/gpg - key_url: https://download.docker.com/linux/ubuntu/gpg
Ubuntu Docker CE installation: Ubuntu Docker CE installation:
pkg.installed: pkg.installed:
- pkgs: - pkgs:
- docker-ce - docker-ce
- docker-compose - docker-compose
{% endif %} {% endif %}
{% endif %} {% endif %}
Debian docker Service running: Debian docker Service running:
service.running: service.running:
- name: docker - name: docker
- enable: True - enable: True
Debian Docker Group: Debian Docker Group:
group.present: group.present:
- name: docker - name: docker
- addusers: - addusers:
- iwan - iwan
{% endif %} {% endif %}
{% endif %} {% endif %}