From 5feedbb4f3e35cfb63201a360a685127b2608345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 26 Jun 2018 01:04:09 +0200 Subject: Allow host to replicate the cluster from backup --- modules/role/templates/backup/pam_ldap_pgbouncer.conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/role/templates') diff --git a/modules/role/templates/backup/pam_ldap_pgbouncer.conf.erb b/modules/role/templates/backup/pam_ldap_pgbouncer.conf.erb index 12fa9bb..384a418 100644 --- a/modules/role/templates/backup/pam_ldap_pgbouncer.conf.erb +++ b/modules/role/templates/backup/pam_ldap_pgbouncer.conf.erb @@ -3,5 +3,5 @@ host <%= @ldap_server %> base <%= @ldap_base %> binddn <%= @ldap_dn %> bindpw <%= @ldap_password %> -pam_login_attribute <%= @ldap_attribute %> +pam_login_attribute <%= @pgbouncer_ldap_attribute %> pam_filter <%= @ldap_filter %> -- cgit v1.2.3 From cc278743bffea94197755c0d114389f5fd69596a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 27 Jun 2018 12:37:18 +0200 Subject: Listen to port depending on host variable --- modules/role/templates/backup/postgresql.conf.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/role/templates') diff --git a/modules/role/templates/backup/postgresql.conf.erb b/modules/role/templates/backup/postgresql.conf.erb index 860089b..c4d223e 100644 --- a/modules/role/templates/backup/postgresql.conf.erb +++ b/modules/role/templates/backup/postgresql.conf.erb @@ -1,5 +1,10 @@ +<%- if !@pg_listen_port.nil? -%> +listen_addresses= '*' +port = <%= @pg_listen_port %> +ssl = on +<%- else -%> listen_addresses= '' +<%- end %> unix_socket_directories = '<%= @pg_path %>' data_directory = '<%= @pg_path %>' wal_level = logical - -- cgit v1.2.3 From 2f3d3a34ab0b3fd31bd84e4c935954740313dbed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 27 Jun 2018 13:10:32 +0200 Subject: Add ssl certificate for postgresql connection --- modules/role/templates/backup/postgresql.conf.erb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/role/templates') diff --git a/modules/role/templates/backup/postgresql.conf.erb b/modules/role/templates/backup/postgresql.conf.erb index c4d223e..8741507 100644 --- a/modules/role/templates/backup/postgresql.conf.erb +++ b/modules/role/templates/backup/postgresql.conf.erb @@ -2,6 +2,8 @@ listen_addresses= '*' port = <%= @pg_listen_port %> ssl = on +ssl_key_file = '<%= @ssl_key %>' +ssl_cert_file = '<%= @ssl_cert %>' <%- else -%> listen_addresses= '' <%- end %> -- cgit v1.2.3