Skip to content

Commit

Permalink
port fix for missing hosts from upgrade_to_20.04 to main
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Jul 7, 2022
1 parent 1357366 commit 9dab6dd
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions salt/consul/etc/join.json.jinja
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{% set join_addresses = [] -%}
{% for server in pillar["consul"]["bootstrap"][pillar["dc"]] -%}
{% for name, addresses in salt["mine.get"](server, "psf_internal").items()|sort() -%}
{% for address in addresses -%}
{% do join_addresses.append(address) -%}
{% endfor -%}
{% endfor -%}
{% endfor -%}
{
"retry_join": [
{% for server in pillar["consul"]["bootstrap"][pillar["dc"]] -%}
{%- set sloop = loop -%}
{% for name, addresses in salt["mine.get"](server, "psf_internal").items()|sort() -%}
{% for address in addresses|sort() -%}
"{{ address }}"{% if not sloop.last %},{% endif %}
{% endfor -%}
{% endfor -%}
{% for address in join_addresses|sort() -%}
"{{ address }}"{% if not loop.last %},{% endif %}
{% endfor %}
]
}

0 comments on commit 9dab6dd

Please sign in to comment.