FYI – This appears to be a bug in cobbler-web.

 

Using the CLI worked:

 

cobbler profile edit –repos=”repo1 repo2” –name=profileName.

 

Thanks,

 

Josh

 

From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Baird, Josh
Sent: Monday, November 23, 2009 9:03 AM
To: cobbler@lists.fedorahosted.org
Subject: Adding repo's to profile / system

 

I am having a problem assigning custom repos to a profile/system.  I have defined the repo’s and they are being mirrored properly.  I can verify this via the web interface as well as “cobbler report.”

 

In the web interface, I browse to Profiles -> MyProfile, and select this repo under the “Repo” section (Repos to auto-assign to this profile).  Then I go to the Kickstart Template and ensure that $yum_repo_stanza is being included.  However, my custom repo’s are never included in $yum_report_stanza therefore they never make it to the KS file.  I verified this by choosing “View Kickstart” on the system as well as by using “cobbler report”  The only repo that $yum_repo_stanza includes is the one for the distro it’s self.

 

Is this a known bug?  What are the workarounds?

 

cobbler-2.0.1-1.el5

cobbler-web-2.0.1-1.el5

 

Thanks,

 

Josh