diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-06-27 12:37:18 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-06-27 12:54:33 +0200 |
commit | cc278743bffea94197755c0d114389f5fd69596a (patch) | |
tree | 9daf63f024b20881c8c22df7d9e3edd4d800acfb /modules/role/templates | |
parent | 5feedbb4f3e35cfb63201a360a685127b2608345 (diff) | |
download | Puppet-cc278743bffea94197755c0d114389f5fd69596a.tar.gz Puppet-cc278743bffea94197755c0d114389f5fd69596a.tar.zst Puppet-cc278743bffea94197755c0d114389f5fd69596a.zip |
Listen to port depending on host variable
Diffstat (limited to 'modules/role/templates')
-rw-r--r-- | modules/role/templates/backup/postgresql.conf.erb | 7 |
1 files changed, 6 insertions, 1 deletions
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 @@ | |||
1 | <%- if !@pg_listen_port.nil? -%> | ||
2 | listen_addresses= '*' | ||
3 | port = <%= @pg_listen_port %> | ||
4 | ssl = on | ||
5 | <%- else -%> | ||
1 | listen_addresses= '' | 6 | listen_addresses= '' |
7 | <%- end %> | ||
2 | unix_socket_directories = '<%= @pg_path %>' | 8 | unix_socket_directories = '<%= @pg_path %>' |
3 | data_directory = '<%= @pg_path %>' | 9 | data_directory = '<%= @pg_path %>' |
4 | wal_level = logical | 10 | wal_level = logical |
5 | |||