diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-06-27 21:52:02 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-06-28 02:34:04 +0200 |
commit | d2f031ece106ed2dc37283b194edfa94718a6306 (patch) | |
tree | 42d4146e0f4b58ab724c4690c1ea431b3e733b7c /modules/profile/files/postgresql | |
parent | c53ac3f84852a42aa8b7341ee7fe0a629d2e3579 (diff) | |
download | Puppet-d2f031ece106ed2dc37283b194edfa94718a6306.tar.gz Puppet-d2f031ece106ed2dc37283b194edfa94718a6306.tar.zst Puppet-d2f031ece106ed2dc37283b194edfa94718a6306.zip |
Refactor backup postgresql
Diffstat (limited to 'modules/profile/files/postgresql')
-rw-r--r-- | modules/profile/files/postgresql/pam_pgbouncer | 3 | ||||
-rw-r--r-- | modules/profile/files/postgresql/pgbouncer_head.ini | 15 |
2 files changed, 18 insertions, 0 deletions
diff --git a/modules/profile/files/postgresql/pam_pgbouncer b/modules/profile/files/postgresql/pam_pgbouncer new file mode 100644 index 0000000..13f0d3d --- /dev/null +++ b/modules/profile/files/postgresql/pam_pgbouncer | |||
@@ -0,0 +1,3 @@ | |||
1 | auth required pam_ldap.so config=/etc/pam_ldap.d/pgbouncer.conf | ||
2 | account required pam_ldap.so config=/etc/pam_ldap.d/pgbouncer.conf | ||
3 | |||
diff --git a/modules/profile/files/postgresql/pgbouncer_head.ini b/modules/profile/files/postgresql/pgbouncer_head.ini new file mode 100644 index 0000000..3ba8728 --- /dev/null +++ b/modules/profile/files/postgresql/pgbouncer_head.ini | |||
@@ -0,0 +1,15 @@ | |||
1 | [pgbouncer] | ||
2 | |||
3 | listen_addr = 0.0.0.0 | ||
4 | listen_port = 5432 | ||
5 | |||
6 | unix_socket_dir = /run/postgresql | ||
7 | unix_socket_mode = 0777 | ||
8 | |||
9 | auth_type = pam | ||
10 | |||
11 | admin_users = postgres | ||
12 | max_client_conn = 100 | ||
13 | default_pool_size = 20 | ||
14 | |||
15 | [databases] | ||