aboutsummaryrefslogtreecommitdiff
path: root/modules/role/templates/backup
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-15 22:37:32 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-16 01:34:39 +0200
commit1c90c6913652e0ec7489ed22941e4e6a31d55912 (patch)
tree00c268872a57752b344abf66ef13c1f59d1b7080 /modules/role/templates/backup
parentcc54396280acf37ee5bd5b2ddf75c6cc97ed1c05 (diff)
downloadPuppet-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.erb7
-rw-r--r--modules/role/templates/backup/pgbouncer.ini.erb15
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 @@
1host <%= @ldap_server %>
2
3base <%= @ldap_base %>
4binddn <%= @ldap_dn %>
5bindpw <%= @ldap_password %>
6pam_login_attribute <%= @ldap_attribute %>
7pam_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
3listen_addr = 0.0.0.0
4listen_port = 5432
5
6unix_socket_dir = /run/postgresql
7unix_socket_mode = 0777
8
9auth_type = pam
10
11admin_users = postgres
12max_client_conn = 100
13default_pool_size = 20
14
15[databases]