Récupération du grain oscodename dans la variable DEBVER

This commit is contained in:
2018-04-30 13:37:12 +02:00
parent 3e65862bb4
commit 890dd29d9b

View File

@@ -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