formula-consul/consul/map.jinja

22 lines
532 B
Plaintext
Raw Normal View History

2016-10-31 16:30:48 -04:00
{% import_yaml slspath+"/defaults.yaml" as defaults %}
2015-10-07 14:18:22 -04:00
{% set consul = salt['pillar.get']('consul', default=defaults.consul, merge=True) %}
{## Add any overrides based on CPU architecture. ##}
2017-06-19 03:15:05 -04:00
{% set consul = salt['grains.filter_by']({
'armv6l': {
"arch": 'arm'
},
'armv7l': {
"arch": 'arm'
},
'x86_64': {
"arch": 'amd64'
}
}
,grain="cpuarch"
,merge=consul)
%}
2015-10-08 07:49:04 -04:00
{% do consul.config.update({'retry_join': consul.config.retry_join or []}) %}