formula-traefik/traefik/map.jinja

20 lines
458 B
Text
Raw Normal View History

2018-05-17 22:52:46 -04:00
{% 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)
%}