Merge pull request #19 from pierluca/patch-2
Bugfix: Defaults are ignored when pillar is set
This commit is contained in:
commit
a30276a1dc
1 changed files with 4 additions and 5 deletions
|
@ -1,7 +1,9 @@
|
|||
{% 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 cpu_arch_map = salt['grains.filter_by']({
|
||||
{% set consul = salt['grains.filter_by']({
|
||||
'armv6l': {
|
||||
"arch": 'arm'
|
||||
},
|
||||
|
@ -13,10 +15,7 @@
|
|||
}
|
||||
}
|
||||
,grain="cpuarch"
|
||||
,merge=salt['pillar.get']('consul'))
|
||||
,merge=consul)
|
||||
%}
|
||||
{% do defaults.consul.update(cpu_arch_map) %}
|
||||
|
||||
{% set consul = salt['pillar.get']('consul', default=defaults.consul, merge=True) %}
|
||||
|
||||
{% do consul.config.update({'retry_join': consul.config.retry_join or []}) %}
|
||||
|
|
Loading…
Reference in a new issue