-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsources.sls
More file actions
31 lines (28 loc) · 842 Bytes
/
sources.sls
File metadata and controls
31 lines (28 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
sources_pkgs:
pkg.installed:
- pkgs:
- apt-transport-https
{% if grains['oscodename'] == 'stretch' %}
deb http://security.debian.org/ stretch/updates main:
pkgrepo.managed:
- dist: stretch/updates
- file: /etc/apt/sources.list.d/security.list
deb https://download.docker.com/linux/debian stretch stable:
pkgrepo.managed:
- dist: stretch
- file: /etc/apt/sources.list.d/docker.list
- keyid: 0EBFCD88
- keyserver: keyserver.ubuntu.com
- require_in:
- pkg: containers_pkgs
{% endif %}
{% if grains['oscodename'] == 'xenial' %}
deb https://download.docker.com/linux/ubuntu xenial stable:
pkgrepo.managed:
- dist: xenial
- file: /etc/apt/sources.list.d/docker.list
- keyid: 0EBFCD88
- keyserver: keyserver.ubuntu.com
- require_in:
- pkg: containers_pkgs
{% endif %}