Michael DeHaan wrote:
Javier Palacios wrote:
> Here is the second (and final?) patch to manage debian repositories.
> It adds a --breed option to `create repo` that should match rsync, rhn,
> yum or apt, depending on the type of repository to be created. If no
> repository breed is given, it should behave exactly in the same manner
> than before. I have successfully tested the "empty", yum and apt breeds,
> but not the rsync one (I'm unsure about how to test that) nor the RHN one.
>
> Javier Palacios
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> cobbler mailing list
> cobbler(a)lists.fedorahosted.org
>
https://fedorahosted.org/mailman/listinfo/cobbler
>
>
Great, I'll take a look at this today or tomorrow. This will be very
nice to have.
I'm currently checking some corner cases of the import code, namely
making sure CentOS also still is happy, etc.
Thanks!
--Michael
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
Seems to work very well. I made some small changes such that if the
breed was "" (as it will be in upgrade scenarios) it would infer it from
the URL and not error out.
I also did not have debmirror installed but confirmed the following
syntax appears operational:
[root@localhost cobbler]# cobbler repo add --arch=i386 --name=foo
--breed=apt --mirror=http://foo.example.org
[root@localhost cobbler]# cobbler reposync --only=foo
- /usr/bin/debmirror --passive --nocleanup --ignore-release-gpg
--verbose --method=http --host=foo.example.org --root= --dist=
/var/www/cobbler/repo_mirror/last -a i386
I've applied this. One possible extension we want to add is that when we
edit a profile to attach repos to it:
cobbler profile edit --name=foo --repos="a b"
we make sure that the profiles are compatible with the distro.
For instance, redhat profiles allow "yum" and "rsync" and
"rhn"
Debian would allow "apt".
Either way, very cool.
I think the only other major missing piece in cobbler is that bit about
testing whether we get import to auto-assign the trees so that installs
from the PXE menu after a debian distro import are fully working out of
the box.
I also think getting koan's --replace-self and --virt modes to work
would be pretty cool, as they complete the cobbler picture.
--Michael