Permalink
Browse files

listen_addresses for debian

  • Loading branch information...
1 parent be47524 commit cbea7fccf62bb896e0ad19115a878dce0c81f6d9 @phunehehe committed Nov 27, 2012
@@ -1,3 +1,4 @@
+<% pg_config = node[:postgresql][:config] -%>
data_directory = '/var/lib/postgresql/<%= node.postgresql.version -%>/main'
hba_file = '/etc/postgresql/<%= node.postgresql.version -%>/main/pg_hba.conf'
ident_file = '/etc/postgresql/<%= node.postgresql.version -%>/main/pg_ident.conf'
@@ -16,3 +17,4 @@ max_fsm_pages = 153600
log_line_prefix = '%t '
datestyle = 'iso, mdy'
default_text_search_config = 'pg_catalog.english'
+listen_addresses = '<%= pg_config[:listen_addresses].join(',') %>'
@@ -1,4 +1,4 @@
-<% pg_config = node[:postgresql][:config] -%>
+<% pg_config = node[:postgresql][:config] -%>
listen_addresses = '<%= pg_config[:listen_addresses].join(',') %>'
max_connections = 100 # (change requires restart)
shared_buffers = 32MB # min 128kB

0 comments on commit cbea7fc

Please sign in to comment.