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
Copy file name to clipboardExpand all lines: documentation/recovery.md
+24-19
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,12 @@ 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
@@ -16,20 +21,13 @@ This procedure uses the following placeholder references.
16
21
*_\<primary-server-fqdn\>_ - The FQDN and certname of the primary Puppet server
17
22
*_\<old-replica-fqdn\>_ - The FQDN and certname of the old replica Puppet server that has failed or is missing
18
23
*_\<replacement-replica-fqdn\>_ - The FQDN and certname of the new replica Puppet server
19
-
*_\<failed-primary-server-fqdn\>_ - The FQDN and certname of the original primary server that the old replica had replaced
20
-
*_\<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 server that it is replacing.
21
-
22
-
1. If applicable, purge the failed primary server. (You may need to do this, for example, if the original primary failed and the promoted replica that replaced it has also failed.)
23
-
24
-
puppet node purge <failed-primary-server-fqdn>
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.
25
25
26
-
2. Ensure the old replica server is forgotten.
26
+
1. Ensure the old replica server is forgotten.
27
27
28
28
puppet infrastructure forget <old-replica-fqdn>
29
29
30
-
3. Install the Puppet agent on the replacement replica.
31
-
32
-
**Note**: When designating the availability group of the replacement, use the opposite group (A or B) of the server being replaced. This means that, if the old replica server replaced the original primary server, the new replica is assigned the same availability group as the original primary.
30
+
2. Install the Puppet agent on the replacement replica.
@@ -41,18 +39,23 @@ This procedure uses the following placeholder references.
41
39
42
40
puppet agent -t
43
41
44
-
4. Sign the certificate on the new primary server.
42
+
3. Sign the certificate on the primary server.
43
+
44
+
puppetserver ca sign --certname
45
45
46
-
5. On the PE-PostgreSQL server in the _\<replacement-avail-group-letter\>_ group
46
+
4. On the PE-PostgreSQL server in the _\<replacement-avail-group-letter\>_ group
47
47
1. Stop puppet.service
48
48
49
49
puppet resource service puppet ensure=stopped
50
50
51
-
3. Add the following two lines to /opt/puppetlabs/server/data/postgresql/14/data/pg\_ident.conf
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.
7. 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
70
73
71
74
puppet resource service puppet ensure=running
72
75
@@ -128,11 +131,13 @@ On _\<working-postgres-server-fqdn\>_:
128
131
129
132
systemctl stop puppet
130
133
131
-
2. Add this line to /opt/puppetlabs/server/data/postgresql/14/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