On 20 Apr, 2011, at 02:29 , James Cammarata wrote:

On Tue, Apr 19, 2011 at 1:39 PM, Scott Henson <shenson@redhat.com> wrote:
On Fri, 15 Apr 2011 13:28:34 -0400, Michael Hoffman <michaelchoffman@gmail.com> wrote:
Cobbler team,
I would really like to see my patch added into the main tree.  This would
allow for suse support to include repositories selected in the profile into
the autoyast/kickstart profile.
Please see the archived post below
https://fedorahosted.org/pipermail/cobbler-devel/2010-August/001654.html

Are you looking for SUSE support in 2.0.x, or in 2.1.x? We recently
added SUSE support to 2.1.0, but I don't have any plans to back port it
to 2.0.x at this point.

$yum_repo_stanza (and all of the other special variables) need to die.
A snippet should be created and included in all kickstarts, preseeds,
etc. for future use and the internal special variable should be kept
for backwards compatibility only.

Hmm.

I skinned this cat a little differently (for SuSE, anyhow):
https://github.com/mjmac/cobbler/compare/autoyast_addon_support

I did that today before checking the archives.  I didn't see an easy way to ape $yum_repo_stanza for autoyast anyhow, due to the way the xml is generated.  The only potential downside I see to my approach is that there's not any way to control via templating whether or not the repos are included in the XML (if they're selected in the profile, they're added to the XML).  For what I'm doing, that's not a problem.

I've tested this on SLES11sp1.  Should work on recent SLES10 and OpenSuSE, I think.

Mike