changement variable postgresql_hosts

This commit is contained in:
Eric Morino 2023-04-03 17:33:12 +02:00 committed by Jérémy Lecour
parent 26c927d3fe
commit d8e31ef297
2 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,8 @@ cluster_name: "mycluster"
patroni_restapi_listen: "127.0.0.1"
patroni_port: "8008"
postgresql_hosts_cluster: []
postgresql_host: 127.0.0.1
postgresql_listen_ips: 127.0.0.1
postgresql_connect_ip: 127.0.0.1
postgresql_version: ''
postgresql_replication_user: 'repl'
postgresql_superuser: 'admin'

View File

@ -51,8 +51,8 @@ bootstrap:
- replication
postgresql:
listen: {{ postgresql_host }}:{{ postgresql_port }}
connect_address: {{ postgresql_host }}:{{ postgresql_port }}
listen: {{ postgresql_listen_ips }}:{{ postgresql_port }}
connect_address: {{ postgresql_connect_ip }}:{{ postgresql_port }}
bin_dir: /usr/lib/postgresql/{{ postgresql_version }}/bin/
data_dir: /home/{{ cluster_name_host }}
pgpass: /tmp/{{ cluster_name_host }}-pgpass