<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Sandor,<br>
<br>
* Set "yum_post_install_mirror" to "1" in <i><b>/var/lib/cobbler/settings</b></i>.<br>
<br>
* Create a directory somewhere for your repository.  Create a base
directory:<br>
<br>
    <b>mkdir -p /my/repo/base</b><br>
<br>
* Copy any and all custom or third-party RPMs to the base directory.<br>
<br>
* Create the metadata for the repository ("yum install createrepo" if
you don't have the utility).  This may not be necessary, but this will
ensure that the metadata is available:<br>
    <br>
    <b>createrepo</b> <b>/my/repo </b># note that the target is <i>not</i>
the base directory<br>
<br>
* Add the repo to cobbler.<br>
<br>
    <b>cobbler repo add --mirror=/my/repo --name=name_of_your_repo</b><br>
<br>
*  Sync repositories:<br>
<br>
    <b>cobbler reposync</b><br>
<br>
* Add repos to your cobbler profiles/distros.<br>
<br>
    <b>cobbler distro edit --name=my_distro --repos='name_of_your_repo
...'<br>
    cobbler profile edit --name=my_profile
--repos='name_of_your_repo...'<br>
<br>
    </b># Modify only the item that most closely meets your scope;
e.g. if all profiles under "my_distro" should include
'name_of_your_repo', you can ignore the '--repos' field whenever
creating profiles that exist under "my_distro".<br>
<br>
* You are done.  Just <b>cobbler sync</b> and your systems' kickstart
files will include YUM repo stanzas provided by Cheetah template
expansions.<br>
<br>
----<br>
<br>
Note that adding RPMS to existing repositories may require re-running '<b>createrepo
/my/repo</b>' and <b>'cobbler reposync</b>' to be seen on your
deployed systems.  You will also need to execute '<b>yum clean all</b>'
(or some variant of 'yum clean') on your client to force it to
redownload the repository metadata (which describe the new RPM set).<br>
<br>
I hope this helps.<br>
<br>
Regards,<br>
<br>
-Adam.<br>
<br>
-A.<br>
<br>
Sandor W. Sklar wrote:
<blockquote cite="mid:F2CB7618-0097-49FF-83B0-E071981A04B3@stanford.edu"
 type="cite"><br>
I apologize in advance if my questions here are "dumb", but I'm kind of
new to this, and am trying to wrap my head around a lot of information.
  <br>
  <br>
I've successfully  set up a basic cobbler (0.6.5) on an RHEL 5 server,
have imported a distro from the rhel-5.1-server-x86_64-dvd iso, and
have PXE booted and built a basic system from this cobbler server. 
That I was able to do all of that in a day of work was amazing, and a
testament to the quality of all of the software involved.
  <br>
  <br>
My question is this: I'd like to set up a yum repository, available
from the cobbler server, containing a few RPMs that aren't available
from another repository (meaning, I'm not "mirroring" another
repository.)  One example would be that I want to have my own
repository of the IBM TSM client RPMs, which one only gets by FTPing
them from IBM's site:
  <br>
  <br>
$ ls -1 *.rpm
  <br>
TIVsm-API64.i386.rpm
  <br>
TIVsm-API.i386.rpm
  <br>
TIVsm-BA.i386.rpm
  <br>
TIVsm-HSM.i386.rpm
  <br>
  <br>
I'd like to have it so I could simply run "yum install tsm-client" on a
system built from my cobbler server, and have the above RPMs and their
dependencies (all included in rhel5 core) installed.  This question
might be best for a yum-specific list, but since cobbler has repository
mirroring integrated, I'd give it a shot here.  Is there an easy way to
accomplish this?
  <br>
  <br>
Thanks,
  <br>
    -s-
  <br>
  <br>
_______________________________________________
  <br>
et-mgmt-tools mailing list
  <br>
<a class="moz-txt-link-abbreviated" href="mailto:et-mgmt-tools@redhat.com">et-mgmt-tools@redhat.com</a>
  <br>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/et-mgmt-tools">https://www.redhat.com/mailman/listinfo/et-mgmt-tools</a>
  <br>
  <br>
</blockquote>
<br>
</body>
</html>