declaring etcd servers in patroni.yml when dcs_exists: true #609
-
Hello,
no host is populated in patroni.yml file:
But host is defined in inventory
I have this in main.yml:
Any idea about how to fix that ? Regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
hello @legrandlegrand # if dcs_type: "etcd" and dcs_exists: true
patroni_etcd_hosts: [] # list of servers of an existing etcd cluster
# - { host: "10.128.64.140", port: "2379" }
# - { host: "10.128.64.142", port: "2379" }
# - { host: "10.128.64.143", port: "2379" } https://github.com/vitabaks/postgresql_cluster/blob/master/vars/main.yml#L71 if you are using your ETCD cluster, which is not controlled by |
Beta Was this translation helpful? Give feedback.
-
Great ! That’s it ! |
Beta Was this translation helpful? Give feedback.
hello @legrandlegrand
https://github.com/vitabaks/postgresql_cluster/blob/master/vars/main.yml#L71
if you are using your ETCD cluster, which is not controlled by
postgresql_cluster
automation, then you should remove IP addresses from the inventory and specify them in the patroni_etcd_hosts variable.