From 6e4d37dbe489ddff1b886320422918d4b30acf9d Mon Sep 17 00:00:00 2001 From: ace Date: Thu, 11 May 2023 14:11:29 +0300 Subject: [PATCH] fix listen_addr and listen_port --- templates/pgbouncer.ini.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/pgbouncer.ini.j2 b/templates/pgbouncer.ini.j2 index 132b5b4..e7249b8 100644 --- a/templates/pgbouncer.ini.j2 +++ b/templates/pgbouncer.ini.j2 @@ -18,8 +18,8 @@ server_tls_sslmode = {{ pgbouncer_server_tls_sslmode }} {% endif %} logfile = {{ pgbouncer_log_dir }}/{{ pgbouncer_log_name }} pidfile = {{ pgbouncer_pid_dir }}/{{ pgbouncer_pid_name }} -listen_addr = {{ hostvars[inventory_hostname]['inventory_hostname'] }} -listen_port = {{ pgbouncer_listen_port | default(6432) }} +listen_addr = {{ pgbouncer_listen_addr | default('0.0.0.0') }} +listen_port = {{ pgbouncer_listen_port | default('6432') }} unix_socket_dir = /var/run/postgresql auth_type = {{ pgbouncer_auth_type }} auth_file = {{ pgbouncer_auth_file }}