Add variable pgbouncer_auth_type and add README
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2790|4|2786|3|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/261//ansiblelint">Evolix » ansible-roles » unstable #261</a> Details
gitea/ansible-roles/pipeline/head This commit looks good Details

This commit is contained in:
Eric Morino 2023-05-31 15:50:20 +02:00
parent 1ae40e7686
commit 81e1d1b0c1
3 changed files with 5 additions and 2 deletions

View File

@ -14,6 +14,7 @@ Main variables are :
* `pgbouncer_listen_port`: the listen post for PgBouncer (default: `6432`),
* `pgbouncer_databases`: the databases that clients of PgBouncer can connect to,
* `pgbouncer_account_list`: the accounts that clients of PgBouncer can connect to.
* `pgbouncer_auth_type`: the variable `auth_type` define by default to `scram-sha-256`, if you installed PgBouncer on PostgreSQL version inferior to 14, set this variable to `md5`.
The variable `pgbouncer_databases` must have the `name`, `host` and `port` attributes. The variable can be defined like this:

View File

@ -2,6 +2,8 @@
pgbouncer_listen_addr: "127.0.0.1"
pgbouncer_listen_port: "6432"
pgbouncer_auth_type: "scram-sha-256"
pgbouncer_databases: []
pgbouncer_account_list: []

View File

@ -11,7 +11,7 @@ listen_addr = {{ pgbouncer_listen_addr }}
listen_port = {{ pgbouncer_listen_port }}
unix_socket_dir =
auth_type = scram-sha-256
auth_type = {{ pgbouncer_auth_type }}
auth_file = /etc/pgbouncer/userlist.txt
# La connexion au serveur redevient libre lorsque le client termine une transaction
@ -26,4 +26,4 @@ default_pool_size = 20
# Ne pas enregistrer les connexions qui se passent bien
log_connections = 0
log_disconnections = 0
log_disconnections = 0