Add variable pgbouncer_auth_type and add README
All checks were successful
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>
gitea/ansible-roles/pipeline/head This commit looks good
All checks were successful
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>
gitea/ansible-roles/pipeline/head This commit looks good
This commit is contained in:
parent
1ae40e7686
commit
81e1d1b0c1
|
@ -14,6 +14,7 @@ Main variables are :
|
||||||
* `pgbouncer_listen_port`: the listen post for PgBouncer (default: `6432`),
|
* `pgbouncer_listen_port`: the listen post for PgBouncer (default: `6432`),
|
||||||
* `pgbouncer_databases`: the databases that clients of PgBouncer can connect to,
|
* `pgbouncer_databases`: the databases that clients of PgBouncer can connect to,
|
||||||
* `pgbouncer_account_list`: the accounts 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:
|
The variable `pgbouncer_databases` must have the `name`, `host` and `port` attributes. The variable can be defined like this:
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
pgbouncer_listen_addr: "127.0.0.1"
|
pgbouncer_listen_addr: "127.0.0.1"
|
||||||
pgbouncer_listen_port: "6432"
|
pgbouncer_listen_port: "6432"
|
||||||
|
|
||||||
|
pgbouncer_auth_type: "scram-sha-256"
|
||||||
|
|
||||||
pgbouncer_databases: []
|
pgbouncer_databases: []
|
||||||
|
|
||||||
pgbouncer_account_list: []
|
pgbouncer_account_list: []
|
||||||
|
|
|
@ -11,7 +11,7 @@ listen_addr = {{ pgbouncer_listen_addr }}
|
||||||
listen_port = {{ pgbouncer_listen_port }}
|
listen_port = {{ pgbouncer_listen_port }}
|
||||||
unix_socket_dir =
|
unix_socket_dir =
|
||||||
|
|
||||||
auth_type = scram-sha-256
|
auth_type = {{ pgbouncer_auth_type }}
|
||||||
auth_file = /etc/pgbouncer/userlist.txt
|
auth_file = /etc/pgbouncer/userlist.txt
|
||||||
|
|
||||||
# La connexion au serveur redevient libre lorsque le client termine une transaction
|
# La connexion au serveur redevient libre lorsque le client termine une transaction
|
||||||
|
|
Loading…
Reference in a new issue