{endcode} {subsection: Mirror Site Actions} -Once the mirror has happened at a site, this is what the mirroring site needs to do. These changes allow YUM requests against the mirror site to get the right files from the right place. - -{verbatim} -1. Modify URL (baseurl) in each repo file to match the new location. -Currently there are 4 files: development|stable - rhel4|rhel5 - -2. Update index files by executing the following commands. - -cd <repo_root> - -createrepo stable/rhel4 - -createrepo stable/rhel5 - -createrepo development/rhel4 - -createrepo development/rhel5 - -{endverbatim} +Once the mirror has happened at a site, this is what the mirroring site +needs to do. These changes allow YUM requests against the mirror site +to get the right files from the right place. + +The directory structure of the YUM repo is: +*: =<path>/yum= +*::=/development= - Contains Development Repositories +*:::=/rhel4= - The Rhel 4 release of Condor +*::::=/condor-7.5.-*= - The development version RPM files for RHEL4 +*::::=/repodata - The index files for this portion of the repo. +*:::::=/filelists.xml.gz= +*:::::=/other.xml.gz= +*:::::=/primary.xml.gz= +*:::::=/repomd.xml= +*:::=/rhel5= - The Rhel 5 release of Condor +*::::=/condor-7.5.-*= - The development version RPM files for RHEL5 +*::::=/repodata - The index files for this portion of the repo. +*:::::=/filelists.xml.gz= +*:::::=/other.xml.gz= +*:::::=/primary.xml.gz= +*:::::=/repomd.xml= +*::=/stable= - Contains Stable Repositories +*:::=/rhel4= - The Rhel 4 release of Condor +*::::=/condor-7.4.-*= - The stable version RPM files for RHEL4 +*::::=/repodata - The index files for this portion of the repo. +*:::::=/filelists.xml.gz= +*:::::=/other.xml.gz= +*:::::=/primary.xml.gz= +*:::::=/repomd.xml= +*:::=/rhel5= - The Rhel 5 release of Condor +*::::=/condor-7.4.-*= - The stable version RPM files for RHEL5 +*::::=/repodata= - The index files for this portion of the repo. +*:::::=/filelists.xml.gz= +*:::::=/other.xml.gz= +*:::::=/primary.xml.gz= +*:::::=/repomd.xml= +*::=/repo.d= - Store repo files that describe the yum repo locations +*:::=/condor-development-rhel4.repo= - A Repo Description File +*:::=/condor-development-rhel5.repo= - A Repo Description File +*:::=/condor-stable-rhel4.repo= - A Repo Description File +*:::=/condor-stable-rhel5.repo= - A Repo Description File + +Now we must modify the repo files to point to the mirrored repository. + +1: Modify the store repo files to contain the new url to the RPMs. The files +that must be modified are listed. The attribute which needs changing is the +*baseurl* attribute in each of these files. This must point to a fully +qualified URL at the local mirror site. +1:: =<path>/yum/repo.d/condor-development-rhel4.repo= +1:: =<path>/yum/repo.d/condor-development-rhel5.repo= +1:: =<path>/yum/repo.d/condor-stable-rhel4.repo= +1:: =<path>/yum/repo.d/condor-stable-rhel4.repo= +2: Update index files by executing the following commands. +{code} +> cd <path>/yum +> createrepo stable/rhel4 +> createrepo stable/rhel5 +> createrepo development/rhel4 +> createrepo development/rhel5 +{endcode} +This will create/update the index files for each directory. {subsection: Collaborators known to mirror the Condor YUM repository}