diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-05-15 22:37:32 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-05-16 01:34:39 +0200 |
commit | 1c90c6913652e0ec7489ed22941e4e6a31d55912 (patch) | |
tree | 00c268872a57752b344abf66ef13c1f59d1b7080 /modules/role/templates/backup | |
parent | cc54396280acf37ee5bd5b2ddf75c6cc97ed1c05 (diff) | |
download | Puppet-1c90c6913652e0ec7489ed22941e4e6a31d55912.tar.gz Puppet-1c90c6913652e0ec7489ed22941e4e6a31d55912.tar.zst Puppet-1c90c6913652e0ec7489ed22941e4e6a31d55912.zip |
Add pgbouncer for backup
Diffstat (limited to 'modules/role/templates/backup')
-rw-r--r-- | modules/role/templates/backup/pam_ldap_pgbouncer.conf.erb | 7 | ||||
-rw-r--r-- | modules/role/templates/backup/pgbouncer.ini.erb | 15 |
2 files changed, 22 insertions, 0 deletions
diff --git a/modules/role/templates/backup/pam_ldap_pgbouncer.conf.erb b/modules/role/templates/backup/pam_ldap_pgbouncer.conf.erb new file mode 100644 index 0000000..12fa9bb --- /dev/null +++ b/modules/role/templates/backup/pam_ldap_pgbouncer.conf.erb | |||
@@ -0,0 +1,7 @@ | |||
1 | host <%= @ldap_server %> | ||
2 | |||
3 | base <%= @ldap_base %> | ||
4 | binddn <%= @ldap_dn %> | ||
5 | bindpw <%= @ldap_password %> | ||
6 | pam_login_attribute <%= @ldap_attribute %> | ||
7 | pam_filter <%= @ldap_filter %> | ||
diff --git a/modules/role/templates/backup/pgbouncer.ini.erb b/modules/role/templates/backup/pgbouncer.ini.erb new file mode 100644 index 0000000..3ba8728 --- /dev/null +++ b/modules/role/templates/backup/pgbouncer.ini.erb | |||
@@ -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] | ||