aboutsummaryrefslogtreecommitdiff
path: root/os/config/roles/consul
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-10-27 22:39:00 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-10-27 22:39:00 +0100
commit2557793cee67469c1871fd384c6c094006a64aa6 (patch)
tree0d788d86ccec8313940a63aa8934aceb58922396 /os/config/roles/consul
parentbf9a9128b841f53b3c499eee0fa2735b569eff60 (diff)
downloadinfrastructure-2557793cee67469c1871fd384c6c094006a64aa6.tar.gz
infrastructure-2557793cee67469c1871fd384c6c094006a64aa6.zip
switch consul to ipv6
Diffstat (limited to 'os/config/roles/consul')
-rw-r--r--os/config/roles/consul/templates/consul.json.j210
1 files changed, 5 insertions, 5 deletions
diff --git a/os/config/roles/consul/templates/consul.json.j2 b/os/config/roles/consul/templates/consul.json.j2
index beea1fa..a55d351 100644
--- a/os/config/roles/consul/templates/consul.json.j2
+++ b/os/config/roles/consul/templates/consul.json.j2
@@ -1,14 +1,14 @@
{
"data_dir": "/var/lib/consul",
- "bind_addr": "0.0.0.0",
- "advertise_addr": "{{ ipv4 }}",
+ "bind_addr": "[::]",
+ "advertise_addr": "{{ ipv6 }}",
"addresses": {
- "dns": "0.0.0.0",
- "http": "0.0.0.0"
+ "dns": "[::]",
+ "http": "[::]"
},
"retry_join": [
{% for selected_host in groups['cluster_nodes']|reject("sameas", ansible_fqdn) %}{# @FIXME: Reject doesn't work #}
- "{{ hostvars[selected_host]['ipv4'] }}" {{ "," if not loop.last else "" }}
+ "{{ hostvars[selected_host]['ipv6'] }}" {{ "," if not loop.last else "" }}
{% endfor %}
],
"bootstrap_expect": 3,