make postgresql listen on all ip address

This commit is contained in:
ace 2024-04-09 16:37:44 +03:00
parent 5ef777adf1
commit cdfc282bf0
Signed by: ace
GPG Key ID: 2C08973DD37A76FD

View File

@ -123,7 +123,7 @@ bootstrap:
postgresql:
listen: {{ hostvars[inventory_hostname]['ansible_host'] }},127.0.0.1:{{ patroni_postgresql_port }}
listen: 0.0.0.0:{{ patroni_postgresql_port }}
connect_address: {{ hostvars[inventory_hostname]['ansible_host'] }}:{{ patroni_postgresql_port }}
use_unix_socket: true
data_dir: {{ patroni_postgresql_home_dir }}/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}