[et-mgmt-tools] Cobbler auto-discovery and configuration of yum repos to mirror

Michael DeHaan mdehaan at redhat.com
Fri Aug 31 21:44:17 UTC 2007


Ok,

Don't get exited yet.  This needs yum 3.2.4 which is available in 
F7-testing and probably will be in EL5.2.  This means
you probably don't have it.   If you don't have it, cobbler will figure 
that out and will not run the command.

Example (on my F7 laptop)

[root at mdehaan cobbler]# python cobbler.py repo auto-add
auto adding: Fedora7-i386 
(http://download.fedora.devel.redhat.com/pub/fedora/linux/releases/7/Everything/i386/os)
auto adding: Fedora7-i386-TestUpdates 
(http://download.fedora.devel.redhat.com/pub/fedora/linux/updates/testing/7/i386)
auto adding: Fedora7-i386-Updates 
(http://download.fedora.devel.redhat.com/pub/fedora/linux/updates/7/i386)
run cobbler reposync to apply changes
[root at mdehaan cobbler]#


What it does is look to see what yum repos you have configured on your 
boot server.    It then creates a cobbler "repo" record
for each one of them.

This is a quick and easy way to make, say, a Fedora 7 boot server into a 
package mirror for the same content -- with just one command (ok, two if
you count "cobbler reposync").

This probably does not work with yum-rhn-plugin just yet though I'll be 
testing that shortly.

Checked in upstream and will be in 0.6.2.

--Michael





More information about the et-mgmt-tools mailing list