Steps to run after a PEADM installation
- If your backup source PE installation includes compilers and you are restoring your primary server on the same operating system that was in use when the backup was created, migrate your compilers to the new primary server. Run the following command on all compilers: puppet agent -t --server_list
<NEW_PRIMARY_SERVER_CERTNAME>. - If your backup source PE installation includes compilers and you are migrating to a new primary server running a different or upgraded operating system, you must forget the previous compilers and add new compilers on the same OS major version, platform, and architecture as the new primary server. Complete the following steps on the restored primary server:
- On the primary server, run the following command for each compiler:
puppet node purge <COMPILER_CERTNAME>. If any of the compilers included in your installation were legacy compilers (compilers without the PuppetDB service), you must unpin them from the PE Master node group. On the new primary server, run Puppet to apply the configuration changes:
puppet agent -t- Install and configure new compilers.
- On the primary server, run the following command for each compiler:
-
If Code Manager was enabled on the primary server you are migrating from, complete the following steps on the new primary server:
- If necessary, run the following command to generate a new Puppet token for deploying code:
puppet-access login - For each code environment you want to deploy, run: puppet code deploy --wait <ENVIRONMENT_NAME>
-
Alternatively, if you want to deploy all of your PE code environments, you can run the following command:
puppet code deploy --wait --all
- If necessary, run the following command to generate a new Puppet token for deploying code:
- Run Puppet to apply changes:
puppet agent -t --no-use_cached_catalog
- If you have not configured the
dns_alt_namessetting in thepe.conffile, you need to redirect your agents to the new primary server. If your agents have a load balancer address inpuppet.conf, this step is unnecessary and you can simply make load balancer changes to redirect agent Puppet traffic. If you are not using load balancers, we recommend updating theserver_listconfiguration setting to the new infrastructure using either thepuppet_enteprise::profile::agent::server_listclass parameter or with thepuppet_conftask. - Once your agents are migrated to the new infrastructure, restart
pe-orchestration-serviceson the primary server. This resets allpxp-agentconnections.puppet resource service pe-orchestration-services ensure=stoppedpuppet resource service pe-orchestration-services ensure=running






