fix listen_addr and listen_port

This commit is contained in:
ace 2023-05-11 14:11:29 +03:00
parent 9668298b45
commit 6e4d37dbe4
Signed by: ace
GPG Key ID: 2C08973DD37A76FD

View File

@ -18,8 +18,8 @@ server_tls_sslmode = {{ pgbouncer_server_tls_sslmode }}
{% endif %} {% endif %}
logfile = {{ pgbouncer_log_dir }}/{{ pgbouncer_log_name }} logfile = {{ pgbouncer_log_dir }}/{{ pgbouncer_log_name }}
pidfile = {{ pgbouncer_pid_dir }}/{{ pgbouncer_pid_name }} pidfile = {{ pgbouncer_pid_dir }}/{{ pgbouncer_pid_name }}
listen_addr = {{ hostvars[inventory_hostname]['inventory_hostname'] }} listen_addr = {{ pgbouncer_listen_addr | default('0.0.0.0') }}
listen_port = {{ pgbouncer_listen_port | default(6432) }} listen_port = {{ pgbouncer_listen_port | default('6432') }}
unix_socket_dir = /var/run/postgresql unix_socket_dir = /var/run/postgresql
auth_type = {{ pgbouncer_auth_type }} auth_type = {{ pgbouncer_auth_type }}
auth_file = {{ pgbouncer_auth_file }} auth_file = {{ pgbouncer_auth_file }}