> -----Original Message----- > Date: Wed, 25 Apr 2007 12:06:58 -0400 > From: Michael DeHaan <mdehaan@xxxxxxxxxx> > Subject: Re: [et-mgmt-tools] Question about cobbler repo add w/ RHN > To: Fedora/Linux Management Tools <et-mgmt-tools@xxxxxxxxxx> > Message-ID: <462F7CA2.8090007@xxxxxxxxxx> > Content-Type: text/plain; charset=windows-1252; format=flowed > > 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 > > Ok this worked now -- should the cobbler reposync cmd download anything? [Marc Mondragon] > > > Ø 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. > I was just curious about the logic that determines this. I generally create my own but does the logic exists to use a kickstart file named kickstart_rhel5.ks if it exists in /etc/cobbler. [Marc Mondragon] > > Thanks, > > > > Marc Mondragon > > > > Fox River Financial Resources/Ritchie Capital Investments, Ltd. > > 2100 Enterprise Avenue > > Geneva, IL 60134 > > marcmo@xxxxxxxxxxxx <mailto:marcmo@xxxxxxxxxxxx> > > > > ------------------------------------------------------------------------ Marc Mondragon Fox River Financial Resources/Ritchie Capital Investments, Ltd. 2100 Enterprise Avenue Geneva, IL 60134 marcmo@xxxxxxxxxxxx