Configure Zookeeper only on Cluster address

This commit is contained in:
Joshua Boniface 2021-06-22 02:46:56 -04:00
parent 6396eaa5ff
commit c6590f8ab9
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 %}