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