formula-traefik/traefik/map.jinja

19 lines
457 B
Django/Jinja

{% import_yaml "traefik/defaults.yaml" as defaults %}
{% set traefik = salt['pillar.get']('traefik', default=defaults.traefik, merge=True) %}
{## Add any overrides based on CPU architecture. ##}
{% set traefik = salt['grains.filter_by']({
'armv6l': {
"arch": 'arm'
},
'armv7l': {
"arch": 'arm'
},
'x86_64': {
"arch": 'amd64'
}
}
,grain="cpuarch"
,merge=traefik)
%}