Configure disaster recovery
To configure disaster recovery, you must provision a replica to serve as backup during failovers. If your primary server is permanently disabled, you can then promote a replica.
Before you begin:
- Apply disaster recovery system and software requirements.
- Ensure you have a valid admin RBAC token that is valid for at least an hour, so that it does not expire during the provisioning process. You can delete the token after provisioning is complete.
- Ensure Code Manager is enabled and configured on your primary server.
- Move any tuning parameters that you set for your primary server using the console to Hiera. Using Hiera ensures configuration is applied to both your primary server and replica.
- If you're using an r10k private key for code management, set
puppet_enterprise::profile::master::r10k_private_key
inpe.conf
. This ensures that the r10k private key is synced to your primary server replica. - Back up your classifier hierarchy, because enabling a replica alters classification.
Some of the
puppet infrastructure
commands that are
used to configure and manage disaster recovery require a valid admin RBAC token,
and all commands must be run from a root session. Running with elevated
privileges via sudo puppet infrastructure
is not
sufficient. Instead, start a root session by running sudo
su -
, and then run the puppet
infrastructure
command. For details about these commands, run
puppet infrastructure help <ACTION>
.
For example: puppet infrastructure help
provision
.