Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
puppet: Use "primary" / "replica" consistently in comments.
Alex Vandiverf8fc3a16eb01
diff --git a/puppet/zulip/files/postgresql/pg_backup_and_purge b/puppet/zulip/files/postgresql/pg_backup_and_purgeindex 96c1fc59793..aed7c204802 100755--- a/puppet/zulip/files/postgresql/pg_backup_and_purge+++ b/puppet/zulip/files/postgresql/pg_backup_and_purge@@ -33,7 +33,7 @@ recovery_val = run(['psql', '-v', 'ON_ERROR_STOP=1', '-t', '-c', 'SELECT pg_is_i# Assertion to check that we're extracting the value correctly.assert recovery_val in ['t', 'f']if recovery_val == 't':- # Only run if we're the master+ # Only run if we're the primarysys.exit(0)is_rhel_based = os.path.exists("/etc/redhat-release")diff --git a/puppet/zulip/templates/postgresql/10/postgresql.conf.centos.template.erb b/puppet/zulip/templates/postgresql/10/postgresql.conf.centos.template.erbindex 82562450913..c47f4f0775d 100644--- a/puppet/zulip/templates/postgresql/10/postgresql.conf.centos.template.erb+++ b/puppet/zulip/templates/postgresql/10/postgresql.conf.centos.template.erb@@ -694,13 +694,13 @@ listen_addresses = <%= @listen_addresses %><% end -%><% if @replication != '' -%>-# Master replication settings (ignored on standby)+# Primary replication settings (ignored on replica)wal_level = hot_standbymax_wal_senders = 5archive_mode = onarchive_command = '/usr/local/bin/env-wal-g wal-push %p'-# Standby replication settings (ignored on master)+# Replica settings (ignored on primary)hot_standby = on<% end -%>diff --git a/puppet/zulip/templates/postgresql/10/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/10/postgresql.conf.template.erbindex 2c71081a6d8..ef45101ea2f 100644--- a/puppet/zulip/templates/postgresql/10/postgresql.conf.template.erb+++ b/puppet/zulip/templates/postgresql/10/postgresql.conf.template.erb@@ -694,13 +694,13 @@ listen_addresses = <%= @listen_addresses %><% end -%><% if @replication != '' -%>-# Master replication settings (ignored on standby)+# Primary replication settings (ignored on replica)wal_level = hot_standbymax_wal_senders = 5archive_mode = onarchive_command = '/usr/local/bin/env-wal-g wal-push %p'-# Standby replication settings (ignored on master)+# Replica settings (ignored on primary)hot_standby = on<% end -%>diff --git a/puppet/zulip/templates/postgresql/11/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/11/postgresql.conf.template.erbindex 2c71081a6d8..ef45101ea2f 100644--- a/puppet/zulip/templates/postgresql/11/postgresql.conf.template.erb+++ b/puppet/zulip/templates/postgresql/11/postgresql.conf.template.erb@@ -694,13 +694,13 @@ listen_addresses = <%= @listen_addresses %><% end -%><% if @replication != '' -%>-# Master replication settings (ignored on standby)+# Primary replication settings (ignored on replica)wal_level = hot_standbymax_wal_senders = 5archive_mode = onarchive_command = '/usr/local/bin/env-wal-g wal-push %p'-# Standby replication settings (ignored on master)+# Replica settings (ignored on primary)hot_standby = on<% end -%>diff --git a/puppet/zulip/templates/postgresql/12/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/12/postgresql.conf.template.erbindex 245008cf300..87a5c0883d1 100644--- a/puppet/zulip/templates/postgresql/12/postgresql.conf.template.erb+++ b/puppet/zulip/templates/postgresql/12/postgresql.conf.template.erb@@ -788,13 +788,13 @@ listen_addresses = <%= @listen_addresses %><% end -%><% if @replication != '' -%>-# Master replication settings (ignored on standby)+# Primary replication settings (ignored on replica)wal_level = hot_standbymax_wal_senders = 5archive_mode = onarchive_command = '/usr/local/bin/env-wal-g wal-push %p'-# Standby replication settings (ignored on master)+# Replica settings (ignored on primary)hot_standby = on<% end -%>diff --git a/puppet/zulip/templates/postgresql/9.5/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/9.5/postgresql.conf.template.erbindex 4f2419c32a4..aa03f8e7f2b 100644--- a/puppet/zulip/templates/postgresql/9.5/postgresql.conf.template.erb+++ b/puppet/zulip/templates/postgresql/9.5/postgresql.conf.template.erb@@ -666,13 +666,13 @@ listen_addresses = <%= @listen_addresses %><% end -%><% if @replication != '' -%>-# Master replication settings (ignored on standby)+# Primary replication settings (ignored on replica)wal_level = hot_standbymax_wal_senders = 5archive_mode = onarchive_command = '/usr/local/bin/env-wal-g wal-push %p'-# Standby replication settings (ignored on master)+# Replica settings (ignored on primary)hot_standby = on<% end -%>diff --git a/puppet/zulip/templates/postgresql/9.6/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/9.6/postgresql.conf.template.erbindex 4bacaa257af..ed5d56566fb 100644--- a/puppet/zulip/templates/postgresql/9.6/postgresql.conf.template.erb+++ b/puppet/zulip/templates/postgresql/9.6/postgresql.conf.template.erb@@ -679,13 +679,13 @@ listen_addresses = <%= @listen_addresses %><% end -%><% if @replication != '' -%>-# Master replication settings (ignored on standby)+# Primary replication settings (ignored on replica)wal_level = hot_standbymax_wal_senders = 5archive_mode = onarchive_command = '/usr/local/bin/env-wal-g wal-push %p'-# Standby replication settings (ignored on master)+# Replica settings (ignored on primary)hot_standby = on<% end -%>diff --git a/puppet/zulip_ops/manifests/nagios.pp b/puppet/zulip_ops/manifests/nagios.ppindex 5be1b6c707c..aa36ee42b41 100644--- a/puppet/zulip_ops/manifests/nagios.pp+++ b/puppet/zulip_ops/manifests/nagios.pp@@ -25,7 +25,7 @@ class zulip_ops::nagios {$hosts_app_prod = split(zulipconf('nagios', 'hosts_app_prod', undef), ',')$hosts_app_staging = split(zulipconf('nagios', 'hosts_app_staging', undef), ',')$hosts_postgres_primary = split(zulipconf('nagios', 'hosts_postgres_primary', undef), ',')- $hosts_postgres_secondary = split(zulipconf('nagios', 'hosts_postgres_secondary', undef), ',')+ $hosts_postgres_replica = split(zulipconf('nagios', 'hosts_postgres_replica', undef), ',')$hosts_redis = split(zulipconf('nagios', 'hosts_redis', undef), ',')$hosts_loadbalancer = split(zulipconf('nagios', 'hosts_loadbalancer', undef), ',')$hosts_stats = split(zulipconf('nagios', 'hosts_stats', undef), ',')diff --git a/puppet/zulip_ops/templates/munin/munin.conf.erb b/puppet/zulip_ops/templates/munin/munin.conf.erbindex 1a4caf2c846..90bf1d00ba7 100644--- a/puppet/zulip_ops/templates/munin/munin.conf.erb+++ b/puppet/zulip_ops/templates/munin/munin.conf.erb@@ -1,6 +1,6 @@# This file was auto-generated by Puppet. Do not edit by hand.-# Configfile for Munin master+# Configfile for Munin serverdbdir /var/lib/muninhtmldir /var/cache/munin/wwwlogdir /var/log/munindiff --git a/puppet/zulip_ops/templates/nagios3/hosts.cfg.template.erb b/puppet/zulip_ops/templates/nagios3/hosts.cfg.template.erbindex 78e0e6c4a29..a03774cd67d 100644--- a/puppet/zulip_ops/templates/nagios3/hosts.cfg.template.erb+++ b/puppet/zulip_ops/templates/nagios3/hosts.cfg.template.erb@@ -68,7 +68,7 @@ define host{}<% end -%>-<% @hosts_postgres_secondary.each do |host| -%>+<% @hosts_postgres_replica.each do |host| -%>define host{use generic-hosthost_name <%= host %>