fix backup/restore and update vars for patroni rest

This commit is contained in:
ace
2024-07-24 12:22:08 +03:00
parent 7bf4ad8d17
commit c8d358bbe3
6 changed files with 19 additions and 16 deletions

View File

@ -125,8 +125,8 @@ bootstrap:
- host replication replicator 0.0.0.0/0 {{ patroni_postgresql_password_encryption_algorithm }}
postgresql:
listen: 0.0.0.0:{{ patroni_postgresql_port }}
connect_address: {{ hostvars[inventory_hostname]['ansible_host'] }}:{{ patroni_postgresql_port }}
listen: {{ patroni_postgresql_listen_address }}:{{ patroni_postgresql_listen_port }}
connect_address: {{ hostvars[inventory_hostname]['ansible_host'] }}:{{ patroni_postgresql_listen_port }}
use_unix_socket: true
data_dir: {{ patroni_postgresql_home_dir }}/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}
bin_dir: {{ patroni_postgresql_bin_dir }}