formula-consul/consul/map.jinja
2017-06-19 09:15:05 +02:00

21 lines
532 B
Django/Jinja

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