Configure Zookeeper only on Cluster address

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:26 -04:00
parent 7e94dddb4c
commit f105f0497c
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ dataDir=/var/lib/zookeeper
autopurge.purgeInterval=72
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 %}
server.{{ node.node_id }}={{ node.hostname.split('.')[0] }}.{{ pvc_cluster_domain }}:2888:3888
server.{{ node.node_id }}={{ node.cluster_ip }}:2888:3888
{% endfor %}