Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppet: Fix non-replicated PostgreSQL 10 and 11 configuration.

Alex Vandiverd891b9590a8d
diff --git a/puppet/zulip/templates/postgresql/10/postgresql.conf.centos.template.erb b/puppet/zulip/templates/postgresql/10/postgresql.conf.centos.template.erb
index 987883b0d2d..ed7a6bc2981 100644
--- a/puppet/zulip/templates/postgresql/10/postgresql.conf.centos.template.erb
+++ b/puppet/zulip/templates/postgresql/10/postgresql.conf.centos.template.erb
@@ -693,7 +693,7 @@ effective_io_concurrency = <%= @effective_io_concurrency %>
listen_addresses = <%= @listen_addresses %>
<% end -%>
-<% if @replication != '' -%>
+<% if @s3_backups_bucket != '' -%>
# Primary replication settings (ignored on replica)
wal_level = hot_standby
max_wal_senders = 5
diff --git a/puppet/zulip/templates/postgresql/10/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/10/postgresql.conf.template.erb
index b00d45f27dd..a47e3cbe335 100644
--- a/puppet/zulip/templates/postgresql/10/postgresql.conf.template.erb
+++ b/puppet/zulip/templates/postgresql/10/postgresql.conf.template.erb
@@ -693,7 +693,7 @@ effective_io_concurrency = <%= @effective_io_concurrency %>
listen_addresses = <%= @listen_addresses %>
<% end -%>
-<% if @replication != '' -%>
+<% if @s3_backups_bucket != '' -%>
# Primary replication settings (ignored on replica)
wal_level = hot_standby
max_wal_senders = 5
diff --git a/puppet/zulip/templates/postgresql/11/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/11/postgresql.conf.template.erb
index b00d45f27dd..a47e3cbe335 100644
--- a/puppet/zulip/templates/postgresql/11/postgresql.conf.template.erb
+++ b/puppet/zulip/templates/postgresql/11/postgresql.conf.template.erb
@@ -693,7 +693,7 @@ effective_io_concurrency = <%= @effective_io_concurrency %>
listen_addresses = <%= @listen_addresses %>
<% end -%>
-<% if @replication != '' -%>
+<% if @s3_backups_bucket != '' -%>
# Primary replication settings (ignored on replica)
wal_level = hot_standby
max_wal_senders = 5