Migrate from Foreman to Foreman+Katello

Hello,

It looks like it is not possible to add Katello to an existing Foreman
installation. Tracker #7605: As a Foreman user, I would like to be able to add Katello later to an existing Foreman installation - Katello - Foreman

Are there any recommended methods of migrating from an existing Foreman
only install, to a fresh Foreman+Katello installation? The puppet modules
and existing puppet certificates should be easy enough to copy over, but
what about my templates/hosts/host groups etc? Any way I can dump this data
and import it into the new host?

Thanks,
Steve

Same boat here. Seems to be a lack of docs on that for some reason…
Pretty excited to get that integration going! Both projects have come so
far!!

··· On Friday, October 14, 2016 at 5:36:35 PM UTC-4, steved0ca wrote: > > Hello, > > It looks like it is not possible to add Katello to an existing Foreman > installation. http://projects.theforeman.org/issues/7605 > > Are there any recommended methods of migrating from an existing Foreman > only install, to a fresh Foreman+Katello installation? The puppet modules > and existing puppet certificates should be easy enough to copy over, but > what about my templates/hosts/host groups etc? Any way I can dump this data > and import it into the new host? > > Thanks, > Steve > > >

There's a few things you can try - if you want to play with these, start
with a sandbox you can break :slight_smile:

For any Foreman objects, like Hostgroups, you can probably do something
with hammer-csv (https://github.com/Katello/hammer-cli-csv) to dump objects
from one host and import them to another. Assuming you have both Foreman
instances set up to handle orchestration to the same proxies, I think
that'll work for DNS/DHCP etc

For classes assigned to Hosts only there's also an ENC importer. To be
honest, hammer-csv is probably better, as this rake task flattens the
hostgroup structure, but as an alternative, look at "foreman-rake -T | grep
puppet:import"

For templates, there's no good way to get them out (except maybe
hammer-csv again) as they're stored in the db - but for managing them in
general, you could look to the foreman_templates plugin (
https://github.com/theforeman/foreman_templates) which enables you to use a
git repo as a source of templates. It's a one-way sync though, so you'll
have to populate the repo first.

Hope that helps - do let us know how you get on!
Greg

··· On 18 October 2016 at 04:28, Austin Smith wrote:

On Friday, October 14, 2016 at 5:36:35 PM UTC-4, steved0ca wrote:

Hello,

It looks like it is not possible to add Katello to an existing Foreman
installation. Tracker #7605: As a Foreman user, I would like to be able to add Katello later to an existing Foreman installation - Katello - Foreman

Are there any recommended methods of migrating from an existing Foreman
only install, to a fresh Foreman+Katello installation? The puppet modules
and existing puppet certificates should be easy enough to copy over, but
what about my templates/hosts/host groups etc? Any way I can dump this data
and import it into the new host?