split variables for RedHat and Debain os family

This commit is contained in:
ace
2023-04-16 03:31:57 +03:00
parent 7940184553
commit 9668298b45
7 changed files with 44 additions and 33 deletions

View File

@ -1,3 +1,4 @@
pgbouncer_postgresql_major_version: "15"
pgbouncer_conf_dir: "/etc/pgbouncer"
pgbouncer_conf_name: "pgbouncer.ini"
pgbouncer_log_dir: "/var/log/pgbouncer"
@ -14,7 +15,7 @@ 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_hba_file: "{{ pgbouncer_postgresql_config_cluster_dir }}/pg_hba.conf"
pgbouncer_auth_file_name: "userlist.txt"
pgbouncer_auth_file: "{{ pgbouncer_conf_dir }}/{{ pgbouncer_auth_file_name }}"
pgbouncer_admin_users: "postgres"