formula-traefik/traefik/map.jinja

20 lines
457 B
Text
Raw Normal View History

2018-05-17 23:53:40 -04:00
{% import_yaml "traefik/defaults.yaml" as defaults %}
2018-05-17 22:52:46 -04:00
{% 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)
%}