Récupération du grain oscodename dans la variable DEBVER
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif grains['os_family'] == 'Debian' %}
|
{% elif grains['os_family'] == 'Debian' %}
|
||||||
{% if grains['os'] == 'Debian' %}
|
{% if grains['os'] == 'Debian' %}
|
||||||
|
{% set DEBVER = salt['grains.get']('oscodename') %}
|
||||||
Debian Docker PreRequisites:
|
Debian Docker PreRequisites:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- pkgs:
|
- pkgs:
|
||||||
@@ -43,7 +44,7 @@
|
|||||||
Debian Docker Add Repo:
|
Debian Docker Add Repo:
|
||||||
pkgrepo.managed:
|
pkgrepo.managed:
|
||||||
# - name: deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable
|
# - name: deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable
|
||||||
- name: deb [arch=amd64] https://download.docker.com/linux/debian grains['oscodename'] stable
|
- name: deb [arch=amd64] https://download.docker.com/linux/debian {{DEBVER}} 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/debian/gpg
|
- key_url: https://download.docker.com/linux/debian/gpg
|
||||||
|
|||||||
Reference in New Issue
Block a user