puppet: Add zulip.conf setting for listen_addresses tuning.

This commit is contained in:
Tim Abbott
2016-07-30 20:11:03 -07:00
parent b2e32e6e3f
commit 922a4acdc5
2 changed files with 5 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ vm.dirty_background_ratio = 5
$random_page_cost = zulipconf("postgresql", "random_page_cost", undef)
$effective_io_concurrency = zulipconf("postgresql", "effective_io_concurrency", undef)
$replication = zulipconf("postgresql", "replication", undef)
$listen_addresses = zulipconf("postgresql", "listen_addresses", undef)
file { "/etc/postgresql/${zulip::base::postgres_version}/main/postgresql.conf":
require => Package["postgresql-${zulip::base::postgres_version}"],

View File

@@ -661,6 +661,10 @@ random_page_cost = <%= scope["zulip::postgres_appdb_tuned::random_page_cost"] %>
effective_io_concurrency = <%= scope["zulip::postgres_appdb_tuned::effective_io_concurrency"] %>
<% end -%>
<% if scope["zulip::postgres_appdb_tuned::listen_addresses"] -%>
listen_addresses = <%= scope["zulip::postgres_appdb_tuned::listen_addresses"] %>
<% end -%>
<% if scope["zulip::postgres_appdb_tuned::replication"] -%>
# Master replication settings (ignored on standby)
wal_level = hot_standby