2023-04-16 00:31:57 +00:00
|
|
|
pgbouncer_postgresql_major_version: "15"
|
2023-02-07 23:34:53 +00:00
|
|
|
pgbouncer_conf_dir: "/etc/pgbouncer"
|
|
|
|
pgbouncer_conf_name: "pgbouncer.ini"
|
|
|
|
pgbouncer_log_dir: "/var/log/pgbouncer"
|
2023-02-20 22:53:32 +00:00
|
|
|
pgbouncer_pid_dir: "/tmp"
|
2023-02-07 23:34:53 +00:00
|
|
|
pgbouncer_pid_name: "pgbouncer.pid"
|
|
|
|
pgbouncer_log_name: "pgbouncer.log"
|
2023-05-11 11:12:15 +00:00
|
|
|
pgbouncer_listen_addr: '0.0.0.0'
|
|
|
|
pgbouncer_listen_port: '6432'
|
2023-02-07 23:34:53 +00:00
|
|
|
pgbouncer_systemd_user: "pgbouncer"
|
|
|
|
pgbouncer_systemd_group: "pgbouncer"
|
|
|
|
pgbouncer_max_client_conn: 10000
|
|
|
|
pgbouncer_max_db_connections: 1000
|
|
|
|
pgbouncer_default_pool_size: 20
|
2024-03-19 11:08:09 +00:00
|
|
|
pgbouncer_reserve_pool_size: 5
|
2023-02-07 23:34:53 +00:00
|
|
|
pgbouncer_default_pool_mode: "session"
|
2024-04-09 13:19:46 +00:00
|
|
|
pgbouncer_ignore_startup_parameters: "extra_float_digits,geqo,search_path"
|
2023-02-07 23:34:53 +00:00
|
|
|
pgbouncer_auth_type: "hba"
|
2023-06-13 18:33:28 +00:00
|
|
|
pgbouncer_auth_user: "{{ pgbouncer_postgresql_superuser_username }}"
|
2023-04-16 00:31:57 +00:00
|
|
|
pgbouncer_auth_hba_file: "{{ pgbouncer_postgresql_config_cluster_dir }}/pg_hba.conf"
|
2023-02-07 23:34:53 +00:00
|
|
|
pgbouncer_auth_file_name: "userlist.txt"
|
|
|
|
pgbouncer_auth_file: "{{ pgbouncer_conf_dir }}/{{ pgbouncer_auth_file_name }}"
|
|
|
|
pgbouncer_admin_users: "postgres"
|
2024-04-09 13:19:46 +00:00
|
|
|
pgbouncer_client_tls_sslmode: "prefer"
|
2023-02-07 23:34:53 +00:00
|
|
|
pgbouncer_client_tls_key_file: "/etc/pki/tls/private/cert.key"
|
|
|
|
pgbouncer_client_tls_cert_file: "/etc/pki/tls/cert/cert.crt"
|
2024-08-01 15:36:54 +00:00
|
|
|
pgbouncer_client_tls_protocols: "secure"
|
2023-02-07 23:34:53 +00:00
|
|
|
pgbouncer_client_tls_ciphers: "secure"
|
2024-04-09 13:19:46 +00:00
|
|
|
pgbouncer_server_tls_sslmode: "prefer"
|
2023-02-07 23:34:53 +00:00
|
|
|
pgbouncer_server_tls_key_file: "/etc/pki/tls/private/cert.key"
|
|
|
|
pgbouncer_server_tls_cert_file: "/etc/pki/tls/cert/cert.crt"
|
2024-08-01 15:36:54 +00:00
|
|
|
pgbouncer_server_tls_protocols: "secure"
|
2023-02-07 23:34:53 +00:00
|
|
|
pgbouncer_server_tls_ciphers: "secure"
|
2024-08-01 15:36:54 +00:00
|
|
|
pgbouncer_server_lifetime: "300"
|
|
|
|
pgbouncer_server_idle_timeout: "30"
|
2023-02-07 23:34:53 +00:00
|
|
|
pgbouncer_postgresql_host: "localhost"
|
|
|
|
pgbouncer_postgresql_db: "postgres"
|
|
|
|
pgbouncer_postgresql_superuser_username: "postgres"
|
|
|
|
pgbouncer_postgresql_superuser_password: "postgres"
|
|
|
|
pgbouncer_postgresql_auth_query: "select passwd from pg_shadow where usename = %s"
|
|
|
|
pgbouncer_pools:
|
|
|
|
- {name: "postgres", dbname: "postgres", pool_parameters: ""}
|
|
|
|
# - {name: "mydatabase", dbname: "mydatabase", pool_parameters: "pool_size=20 pool_mode=transaction"}
|
|
|
|
# - {name: "", dbname: "", pool_parameters: ""}
|
|
|
|
# - {name: "", dbname: "", pool_parameters: ""}
|
|
|
|
|
|
|
|
pgbouncer_postgresql_supported_versions:
|
|
|
|
- 13
|
|
|
|
- 14
|
|
|
|
- 15
|
2024-03-19 11:08:09 +00:00
|
|
|
- 16
|