On Thu, Jul 8, 2010 at 10:38 PM, Cleaver, Japheth <jcleaver(a)soe.sony.com> wrote:
> -----Original Message-----
> From: cobbler-bounces(a)lists.fedorahosted.org
[mailto:cobbler-bounces@lists.fedorahosted.org] On
> Behalf Of Christian Horn
> Sent: Wednesday, April 07, 2010 8:59 AM
> To: cobbler mailing list
> Subject: Re: cobbler with no local mirroring?
>
> On Wed, Apr 07, 2010 at 11:28:51AM -0400, Matthew Miller wrote:
> >
> > Basically, we've got a mirror server already. It has plenty of resources,
> > and it's set up to automatically sync and so on. I'd therefore like to
avoid
> > duplicating effort (and wasting disk space) in cobbler, and point entirely
> > at that remote mirror. The "Non-Import (Manual) Workflow" with
> > --mirror-locally=N seems to get us part way there, but we still need to do
> > things like "distro add" pointing to local kernel/initrd files
>
> We also mirror ourself and let cobbler just work on that.
> For it to manage pxefiles etc. it has to know about vmlinuz/initrd of the
> distros thou, manage profiles.
> I am not sure what funktionality you would like to get from cobbler without
> having pxe/dhcp-management - and for this cobbler needs to know about the
> distro/profile objects.
>
> Christian
Sorry to resurrect a thread from a while ago, but I'm dealing with the same issue
here. We've got a nice fat internal mirror with plenty of resources. We added a repo
using --available-as (well, actually using cobbler-web with Advanced -> "Mirror
locally" disabled and the relevant repo data seems to come in, however on the distro
side it still needs a Kernel and Initrd local file path to copy over to
/tftpboot/images/DISTRO/vmlinuz/initrd . Placing the files there manually of course
results in them being wiped the next time I do a cobbler sync.
Even if we have to specify the location for each distro manually still, I'm fine with
that... but I'd like to be able to specify a URL here (in lieu of an Absolute path)
and have cobbler simply pull that down as it's doing its sync -- e.g.,
http://rhel.mirrors.example.net/5.90Server/i386/os/images/pxeboot/vmlinuz
Hmm, I think I did some work on this awhile back, you can edit the
distro and specify a URL to a kernel/initrd today. I believe I had
this working for koan installs but it looks like I didn't get it all
the way for pxe.
You could probably get it up and running without too much effort.
Scott's recently done some work around syncing and pxegen which isn't
yet in master, and this is what you'd want to work off.
(
git://github.com/shenson/cobbler.git branch fastsync)
Check out pxegen.py copy_single_distro_files. Looks like you'd need to
handle fetching the files if they're not on the local filesystem and
proceed. Definitely a bug here currently if you try to use URLs to
your kernel/initrd, the file copy is skipped, but profiles referencing
this distro still land in pxelinux.cfg/default pointing to files that
didn't get copied.
Hope that helps!
Cheers,
Devan
--
Devan Goodwin <dgoodwin(a)rm-rf.ca>
http://rm-rf.ca