bounces@lists.fedorahosted.org] On Behalf Of Wes Hardin Sent: Monday, May 30, 2011 11:23 AM On 05/27/2011 11:34 PM, Christian Horn wrote:
On Fri, May 27, 2011 at 01:21:14PM -0500, Owen Beckley wrote:
I was wondering if there is an automated way to have a repo
included
in
cobbler, but have it be disabled by default when it's listed in /etc/yum.repos.d/cobbler-config.repo.
- disable it in %post with a line of sed
The only downside I see is if you list packages in %packages that
are
more current in your 'optional' repo they will be fetched from
there.
Depending on how broad you want the "disabled-ness" to be, it's could even easier than that. Inside each repo directory, there is a file called "config.repo" that is the template for what ends up Cobbler generated cobbler-config.repo. You can simply change the "enabled" line there and all
This gets me half way. The repo in question ends up disabled in /etc/yum.repos.d, but is still listed in the expansion of $yum_repo_stanza.
Should I request a new feature?