formula-traefik/traefik/map.jinja
2018-05-17 22:52:46 -04:00

19 lines
458 B
Django/Jinja

{% import_yaml slspath+"/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)
%}