mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
puppet: Add zulip.conf setting for listen_addresses tuning.
This commit is contained in:
@@ -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}"],
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user