Michael DeHaan wrote:
Seann Clark wrote:
> All,
>
> I am working across my cobbler install, and getting ready to
> update/migrate the current system to a new system. The biggest
> differences between these systems is that one is an i386 arch and the
> new one is x86_64 bit. I am wondering (if there is) the best way to
> migrate the current structure over, or if I should just scrap the old
> structure and rebuild it from scratch. My biggest worry is all the
> time dealing with the configuration of the repo’s would be a long time
> consuming waste to redo if I had to redo it.
>
> Thanks in advance.
>
> Regards,
>
> Seann
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> cobbler mailing list
> cobbler(a)lists.fedorahosted.org
>
https://fedorahosted.org/mailman/listinfo/cobbler
>
>
This should be pretty easy. Cobbler is a noarch package and the data is
not stored in any sort of arch specific way.
Install cobbler on the target system
rsync /var/www/cobbler and /var/lib/cobbler and /etc/cobbler
adjust /etc/cobbler/settings to taste
run cobbler sync
You should be good to go.
You could also try out the new "cobbler replicate" support in 1.0.2,
which essentially does exactly this when fed the appropriate flags.
--Michael
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
How fun, I did the replicate and I did the rsync. Rsync, naturally, went
well (it is what I have been using to selectively port my configs and
other items to the new system to either merge, replace or replicate into
the current configs) what I ended up getting on a replicate to the old
cobbler is:
Mon Jul 07-09:44:47-root@haruhi-new:~> cobbler replicate
--master=192.168.10.2
Found distro FEdra8_rescue.
Distro FEdra8_rescue not here yet.
Found distro hikari.
Distro hikari not here yet.
Stopping named: [ OK ]
Starting named: [ OK ]
<type 'exceptions.NameError'>
global name 'profilew' is not defined
File "/usr/lib/python2.5/site-packages/cobbler/cobbler.py", line 65,
in main
return BootCLI().run(sys.argv)
File "/usr/lib/python2.5/site-packages/cobbler/cobbler.py", line 44,
in run
return self.loader.run(args)
File "/usr/lib/python2.5/site-packages/cobbler/commands.py", line 69,
in run
return fn.run()
File "/usr/lib/python2.5/site-packages/cobbler/modules/cli_misc.py",
line 278, in run
return self.api.replicate(cobbler_master = self.options.master)
File "/usr/lib/python2.5/site-packages/cobbler/api.py", line 433, in
replicate
return replicator.run(cobbler_master = cobbler_master)
File "/usr/lib/python2.5/site-packages/cobbler/action_replicate.py",
line 159, in run
self.sync_profiles()
File "/usr/lib/python2.5/site-packages/cobbler/action_replicate.py",
line 132, in sync_profiles
print 'Found profile %s.' % profilew['name']
I think something broke badly, but it may be just me trying it out for
the first time without reloading the complete system (cobbler that is)
before playing with this. Or maybe my old cobbler isn't set up right.I
am using this version:
cobbler-1.0.2-1.fc9.noarch
The old system is:
cobbler-1.0.2-1.fc7
So it looks like they match, and it does support the commands mentioned,
but I have only tried: cobbler replicate --master=192.168.10.2
I will keep playing with it to see how it all is working.