28 lines
740 B
Plaintext
28 lines
740 B
Plaintext
{% if grains['kernel'] == 'Linux' %}
|
|
{% if grains['os'] == 'Ubuntu' %}
|
|
{% set UBUVER = salt['grains.get']('oscodename') %}
|
|
{% if UBUVER == 'bionic' set UBUVER = 'xenial' }
|
|
Ubuntu Docker PreRequisites:
|
|
pkg.installed:
|
|
- pkgs:
|
|
- apt-transport-https
|
|
- ca-certificates
|
|
- curl
|
|
- gnupg2
|
|
|
|
Ubuntu Docker Add Repo:
|
|
pkgrepo.managed:
|
|
- name: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{UBUVER}} stable
|
|
- file: /etc/apt/sources.list.d/docker-ce.list
|
|
- enable: 1
|
|
- key_url: https://download.docker.com/linux/ubuntu/gpg
|
|
|
|
Ubuntu Docker CE installation:
|
|
pkg.installed:
|
|
- pkgs:
|
|
- docker-ce
|
|
- docker-compose
|
|
|
|
{% endif %}
|
|
{% endif %}
|