mirror of
https://gitea.0xace.cc/ansible-galaxy/pgbouncer.git
synced 2025-06-29 03:03:07 +00:00
first commit
This commit is contained in:
45
defaults/main.yaml
Normal file
45
defaults/main.yaml
Normal file
@ -0,0 +1,45 @@
|
||||
pgbouncer_conf_dir: "/etc/pgbouncer"
|
||||
pgbouncer_conf_name: "pgbouncer.ini"
|
||||
pgbouncer_log_dir: "/var/log/pgbouncer"
|
||||
pgbouncer_pid_dir: "/var/run/pgbouncer"
|
||||
pgbouncer_pid_name: "pgbouncer.pid"
|
||||
pgbouncer_log_name: "pgbouncer.log"
|
||||
pgbouncer_listen_port: 6432
|
||||
pgbouncer_systemd_user: "pgbouncer"
|
||||
pgbouncer_systemd_group: "pgbouncer"
|
||||
pgbouncer_max_client_conn: 10000
|
||||
pgbouncer_max_db_connections: 1000
|
||||
pgbouncer_default_pool_size: 20
|
||||
pgbouncer_default_pool_mode: "session"
|
||||
pgbouncer_ignore_startup_parameters: "extra_float_digits,geqo"
|
||||
pgbouncer_auth_type: "hba"
|
||||
pgbouncer_auth_user: "postgres"
|
||||
pgbouncer_auth_hba_file: "{{ pgbouncer_postgresql_home_dir }}/{{ pgbouncer_postgresql_major_version }}/data/pg_hba.conf"
|
||||
pgbouncer_auth_file_name: "userlist.txt"
|
||||
pgbouncer_auth_file: "{{ pgbouncer_conf_dir }}/{{ pgbouncer_auth_file_name }}"
|
||||
pgbouncer_admin_users: "postgres"
|
||||
pgbouncer_client_tls_sslmode: "require"
|
||||
pgbouncer_client_tls_key_file: "/etc/pki/tls/private/cert.key"
|
||||
pgbouncer_client_tls_cert_file: "/etc/pki/tls/cert/cert.crt"
|
||||
pgbouncer_client_tls_protocols: "tlsv1.3"
|
||||
pgbouncer_client_tls_ciphers: "secure"
|
||||
pgbouncer_server_tls_sslmode: "require"
|
||||
pgbouncer_server_tls_key_file: "/etc/pki/tls/private/cert.key"
|
||||
pgbouncer_server_tls_cert_file: "/etc/pki/tls/cert/cert.crt"
|
||||
pgbouncer_server_tls_protocols: "tlsv1.3"
|
||||
pgbouncer_server_tls_ciphers: "secure"
|
||||
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
|
Reference in New Issue
Block a user