----- "Léon Keijser" keijser@stone-it.com wrote:
On Thu, 2009-07-09 at 17:33 -0400, Jasper Capel wrote:
This should not be an issue, if your reposync'ed repositories for
RHEL / CentOS (base and updates) are also set to priority=1, you can set this on the repo object.
I'm talking about when you do a `cobbler import`, cobbler will automatically create a repository for you in /var/www/cobbler/ks_mirror/<distro>. This repo doesn't show up in `cobbler repo list` so i can't edit it.
And even if i would sync 'base' repositories, i'm still stuck with a 'distro repo' with priority=1.
Yes, but how is this a problem (please describe the impact this has for you)? :)
Jasper
On Fri, 2009-07-10 at 03:10 -0400, Jasper Capel wrote:
I'm talking about when you do a `cobbler import`, cobbler will automatically create a repository for you in /var/www/cobbler/ks_mirror/<distro>. This repo doesn't show up in `cobbler repo list` so i can't edit it.
And even if i would sync 'base' repositories, i'm still stuck with a 'distro repo' with priority=1.
Yes, but how is this a problem (please describe the impact this has for you)? :)
Okay. I have made a custom postfix rpm with a lower version than the one that comes with the CentOS-5.3 DVD. That rpm is put into a seperate repo, called 'extra-packages'. Now i install my system without specifying 'postfix' in %packages. In the %postinstall section i have first included the lines:
yum install yum-priorities -y yum install postfix -y
My installation includes two repositories: 'core-0' and 'extra-packages'. The 'core-0' has a priority of 1 and includes a higher version of postfix than the one in the 'extra-packages' repo. Result: the DVD-shipped version of postfix is installed.
My question was if i could alter the priority of the generated distro-repo (found in /var/www/cobbler/ks_mirror) to something other than 1 in a 'nice' way, other than manually editing the /var/www/cobbler/ks_mirror/config/<distr>.repo file.
If this isn't possible (which i tend to assume by now) that's OK too. It just seems weird that cobbler defines this priority without me being able to change it through the cobbler cmdline tools.
cobbler@lists.fedorahosted.org