formula-fabio/fabio/map.jinja
2018-05-17 17:36:29 -04:00

21 lines
525 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)
%}
{% do fabio.config.update({'retry_join': fabio.config.retry_join or []}) %}