Skip to content

Instantly share code, notes, and snippets.

@mccun934
Created October 9, 2012 20:32
Show Gist options
  • Select an option

  • Save mccun934/3861230 to your computer and use it in GitHub Desktop.

Select an option

Save mccun934/3861230 to your computer and use it in GitHub Desktop.
$ git show aa6286b
commit aa6286b5e2cf1a05e19c4a832bd1ab84956f927c
Author: Lukas Zapletal <lzap+git@redhat.com>
Date: Tue Jul 31 09:19:06 2012 +0200
820624 - make pgsql to listen only on localhost
diff --git a/puppet/modules/postgres/templates/postgresql.conf.erb b/puppet/modules/postgres/templates/postgresql.conf.erb
index a59963f..8cd5739 100644
--- a/puppet/modules/postgres/templates/postgresql.conf.erb
+++ b/puppet/modules/postgres/templates/postgresql.conf.erb
@@ -51,9 +51,8 @@
# - Connection Settings -
-listen_addresses = '<%= listen rescue "*" %>' # what IP address(es) to listen on;
- # comma-separated list of addresses;
- # defaults to 'localhost', '*' = all
+# listen address (localhost by default)
+#listen_addresses = '*'
#port = 5432
max_connections = 100
# note: increasing max_connections costs ~400 bytes of shared memory per
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment