Add only coordinators in Patroni config
This commit is contained in:
parent
a9b2942027
commit
12d30acf90
|
@ -7,7 +7,7 @@ restapi:
|
||||||
connect_address: '{{ ansible_hostname }}.{{ pvc_cluster_domain }}:8008'
|
connect_address: '{{ ansible_hostname }}.{{ pvc_cluster_domain }}:8008'
|
||||||
|
|
||||||
zookeeper:
|
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:
|
bootstrap:
|
||||||
dcs:
|
dcs:
|
||||||
|
|
Loading…
Reference in New Issue