This topic needs a title

Moving day for a Foreman instance.

Has anybody out there had to move an already established Foreman instance
from one datacenter to another? That's essentially a challenge I'm
facing. The data in the PostgreSQL database needs to be preserved since it
has all the host and config group information.

Here's the approach I'm taking:

I've written a script that at the high level does the following:

  • removes /var/lib/puppet/ssl
  • uninstalls puppetdb including removing the /etc/puppetdb directory.
  • runs foreman-installer with the new FQDN and DNS alt names as parameters
  • reinstalls puppetdb

Anyone see a flaw here?