formula-fabio/fabio/map.jinja

19 lines
448 B
Django/Jinja

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