Fix cluster installation using IPv6 addresses
When using IPv6 addresses as zookeeper_cluster_address, they need to get quoted in the configuration, add an "ipwrap" filter that achieves this. Change-Id: I288f16a0e136aa3e21649e59f13b20292b82ff04
This commit is contained in:
parent
15beae0053
commit
75dfebafeb
@ -18,7 +18,7 @@ clientPort={{ zookeeper_client_port }}
|
||||
{% if zookeeper_cluster_members | length > 1 %}
|
||||
# specify all zookeeper servers
|
||||
{% for server in zookeeper_cluster_members %}
|
||||
server.{{ loop.index }}={{ hostvars[server][zookeeper_cluster_address_hostvars_key] }}:{{ zookeeper_cluster_peer_ports }}
|
||||
server.{{ loop.index }}={{ hostvars[server][zookeeper_cluster_address_hostvars_key] | ansible.utils.ipwrap }}:{{ zookeeper_cluster_peer_ports }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user