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: 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_purge
index 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 primary
sys.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.erb
index 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_standby
max_wal_senders = 5
archive_mode = on
archive_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.erb
index 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_standby
max_wal_senders = 5
archive_mode = on
archive_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.erb
index 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_standby
max_wal_senders = 5
archive_mode = on
archive_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.erb
index 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_standby
max_wal_senders = 5
archive_mode = on
archive_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.erb
index 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_standby
max_wal_senders = 5
archive_mode = on
archive_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.erb
index 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_standby
max_wal_senders = 5
archive_mode = on
archive_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.pp
index 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.erb
index 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 server
dbdir /var/lib/munin
htmldir /var/cache/munin/www
logdir /var/log/munin
diff --git a/puppet/zulip_ops/templates/nagios3/hosts.cfg.template.erb b/puppet/zulip_ops/templates/nagios3/hosts.cfg.template.erb
index 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-host
host_name <%= host %>