[et-mgmt-tools] Question about cobbler repo add w/ RHN

Michael DeHaan mdehaan at redhat.com
Wed Apr 25 16:06:58 UTC 2007


Marc Mondragon wrote:
>
> In the wiki it mentions:
>
> This is rather experimental, but if you have a provisioning need for 
> fast local installs without hitting an outside server repeatedly (say 
> you have a slow pipe), you can try:
>
> cobbler repo-add --name=insertnamehere --mirror=http://rhn-channel-name
>
> That's just the channel-name, no server. This only works on RHEL5+ and 
> you'll need entitlements for the channel in question.
>
> Is this functional at this time? I’ve been trying and this is what I get:
>


> Ø cobbler repo add --name=RHEL5-i386-Server-Base 
> --mirror=http://rhel-i386-server-5
>

It should work on RHEL5. However it does look like I've got some bad 
typos in the manpage. I'll correct this.

Try the following:

Ø cobbler repo add --mirror=rhn://rhel-i386-server-5 
--name=rhel-i386-server-5



> Ø cobbler reposync
>
> Ø - creating: 
> /var/www/cobbler/repo_mirror/.origin/RHEL5-i386-Server-Base.repo
>
> Ø - /usr/bin/reposync 
> --config=/var/www/cobbler/repo_mirror/.origin/RHEL5-i386-Server-Base.repo 
> --repoid=RHEL5-i386-Server-Base 
> --download_path=/var/www/cobbler/repo_mirror
>
> Ø Traceback (most recent call last):
>
> Ø File "/usr/bin/reposync", line 196, in ?
>
> Ø main()
>
> Ø File "/usr/bin/reposync", line 140, in main
>
> Ø my.doRepoSetup()
>
> Ø File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 299, 
> in doRepoSetup
>
> Ø repo.setup(self.conf.cache)
>
> Ø File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 505, in 
> setup
>
> Ø raise Errors.RepoError, ('Cannot open/read repomd.xml file for 
> repository: %s' % self)
>
> Ø yum.Errors.RepoError: Cannot open/read repomd.xml file for 
> repository: RHEL5-i386-Server-Base
>
> Ø cobbler reposync failed
>
> On another topic, how is the default kickstart file chosen? As shipped 
> the file /etc/cobbler/default.ks is empty and in listed as the default 
> in /var/lib/cobbler/settings. However, when I run “cobbler report” the 
> default kickstart is listed as /etc/cobbler/kickstart_fc6.ks.
>

It's picked based on the flavor of the OS and the major/minor version. 
Currently there are only two kickstarts -- the "FC 5" one works for 
things FC 5 and before, and the FC6 one works for things FC6 and after 
-- really the only difference is whether Anaconda supports using yum 
repositories at install time, which is a new feature added for FC6. This 
detection process isn't perfect, so if you would like to make changes, 
you can do that...

cobbler profile edit --name=name-of-profile 
--kickstart=/path/to/new/kickstart

Cobbler doesn't require that you use the kickstarts that came with 
Cobbler, though if you look in those kickstarts you can see some 
templated fields (that start with dollar signs) that it will fill in 
automatically. Kickstarts that you write will work better if they 
contain similar fields.

> Thanks,
>
> Marc Mondragon
>
> Fox River Financial Resources/Ritchie Capital Investments, Ltd.
> 2100 Enterprise Avenue
> Geneva, IL 60134
> marcmo at foxriver.com <mailto:marcmo at foxriver.com>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools




More information about the et-mgmt-tools mailing list