Add only coordinators in Patroni config

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:21 -04:00
parent c9393ba957
commit c5b07fcdad
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ restapi:
connect_address: '{{ ansible_hostname }}.{{ pvc_cluster_domain }}:8008'
zookeeper:
hosts: [ {% for host in groups[hostvars[inventory_hostname].group_names[0]] %}'{{ host }}.{{ pvc_cluster_domain }}:2181',{% endfor %} ]
hosts: [ {% for node in pvc_nodes if node.is_coordinator %}{{ node.hostname }}.{{ pvc_cluster_domain }}:2181,{% endfor %} ]
bootstrap:
dcs: