Configure Zookeeper only on Cluster address
This commit is contained in:
parent
7e94dddb4c
commit
f105f0497c
|
@ -9,7 +9,8 @@ dataDir=/var/lib/zookeeper
|
||||||
autopurge.purgeInterval=72
|
autopurge.purgeInterval=72
|
||||||
|
|
||||||
clientPort=2181
|
clientPort=2181
|
||||||
|
clientPortAddress={% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.cluster_ip }}{% endfor %}
|
||||||
|
|
||||||
{% for node in pvc_nodes if node.is_coordinator %}
|
{% for node in pvc_nodes if node.is_coordinator %}
|
||||||
server.{{ node.node_id }}={{ node.hostname.split('.')[0] }}.{{ pvc_cluster_domain }}:2888:3888
|
server.{{ node.node_id }}={{ node.cluster_ip }}:2888:3888
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue