-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
port fix for missing hosts from upgrade_to_20.04 to main
- Loading branch information
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} | ||
] | ||
} |