You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Updates to recovery.md to address PE-39730
https://perforce.atlassian.net/browse/PE-39730 outlines some required changes to the procedure for replacing a missing or failed replica Puppet server. This draft aims to address all issues raised in the ticket.
* Post-review updates to recovery.md
Updates to draft following engineer review
Copy file name to clipboardExpand all lines: documentation/recovery.md
+46-15Lines changed: 46 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -7,43 +7,72 @@ The new system needs to be provisioned with the same certificate name as the sys
7
7
## Recover from failed primary Puppet server
8
8
9
9
1. Promote the replica ([official docs](https://puppet.com/docs/pe/2019.8/dr_configure.html#dr-promote-replica))
10
-
2. Replace missing replica server (same as [Replace missing or failed replica Puppet server](#replace-missing-or-failed-replica-puppet-server) below)
10
+
2. Purge the failed primary server
11
+
12
+
puppet node purge <failed-primary-server-fqdn>
13
+
14
+
15
+
3. Replace missing replica server (same as [Replace missing or failed replica Puppet server](#replace-missing-or-failed-replica-puppet-server) below)
11
16
12
17
## Replace missing or failed replica Puppet server
13
18
14
19
This procedure uses the following placeholder references.
15
20
16
21
*_\<primary-server-fqdn\>_ - The FQDN and certname of the primary Puppet server
17
-
*_\<replacement-replica-fqdn\>_ - The FQDN and certname of the replacement replica Puppet server
18
-
*_\<replacement-avail-group-letter\>_ - Either A or B; whichever of the two letter designations is appropriate for the server being replaced. It will be the opposite of the primary server.
22
+
*_\<old-replica-fqdn\>_ - The FQDN and certname of the old replica Puppet server that has failed or is missing
23
+
*_\<replacement-replica-fqdn\>_ - The FQDN and certname of the new replica Puppet server
24
+
*_\<replacement-avail-group-letter\>_ - Either A or B; whichever of the two letter designations is appropriate for the replacement server. It will be the opposite of the primary server.
3. On the PE-PostgreSQL server in the _\<replacement-avail-group-letter\>_ group
42
+
3. Sign the certificate on the primary server.
43
+
44
+
puppetserver ca sign --certname
45
+
46
+
4. On the PE-PostgreSQL server in the _\<replacement-avail-group-letter\>_ group
35
47
1. Stop puppet.service
36
-
2. Add the following two lines to /opt/puppetlabs/server/data/postgresql/11/data/pg\_ident.conf
48
+
49
+
puppet resource service puppet ensure=stopped
50
+
51
+
3. Add the following two lines to /opt/puppetlabs/server/data/postgresql/_<postgres_version>_/data/pg_ident.conf
52
+
53
+
where _<postgres_version>_ is the appropriate major version of PostgreSQL as detailed in [Component versions in recent PE releases](https://www.puppet.com/docs/pe/2023.8/component_versions_in_recent_pe_releases.html#pe-agent-server-components). For PE release 2023.8.0 the PostgreSQL version is 14.
4. On the PE-PostgreSQL server in the _\<replacement-avail-group-letter\>_ group, start puppet.service
72
+
6. On the PE-PostgreSQL server in the _\<replacement-avail-group-letter\>_ group, start puppet.service
73
+
74
+
puppet resource service puppet ensure=running
75
+
47
76
48
77
## Replace failed PE-PostgreSQL server (A or B side)
49
78
@@ -102,11 +131,13 @@ On _\<working-postgres-server-fqdn\>_:
102
131
103
132
systemctl stop puppet
104
133
105
-
2. Add this line to /opt/puppetlabs/server/data/postgresql/11/data/pg\_ident.conf
134
+
2. Add this line to /opt/puppetlabs/server/data/postgresql/_<postgres_version>_/data/pg_ident.conf
135
+
136
+
where _<postgres_version>_ is the appropriate major version of PostgreSQL as detailed in [Component versions in recent PE releases](https://www.puppet.com/docs/pe/2023.8/component_versions_in_recent_pe_releases.html#pe-agent-server-components). For PE release 2023.8.0 the PostgreSQL version is 14.
0 commit comments