Add only coordinators in Patroni config

This commit is contained in:
Joshua Boniface 2019-07-06 02:49:05 -04:00
parent a9b2942027
commit 12d30acf90
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: