[Spacewalk-list] spacewalk cobbler issue

Kennedy, Ryan rkennedy at PAML.com
Fri Feb 26 17:18:01 UTC 2010


I am probably missing something here so chime in if I am. But, why not just have centrally managed /etc/yum.repos.d/CentOS-* files in the configuration channel and those pushed to the clients.  Add the spacewalk.repo file while you're at it.

I can see multiple pitfalls with using the sed one-liner to disable those repos anyway.  Simple? yes.  Clean and robust? No.

-----Original Message-----
From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of John Hodrien
Sent: Friday, February 26, 2010 12:49 AM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] spacewalk cobbler issue

On Thu, 25 Feb 2010, Jeremy Mueller wrote:

> We had the same problem with a proxy and the CentOS mirrors.  At the beginning of our %post section we put in this sed statement:
>
> sed -i 's/^\[\([^]]*\)\]/[\1]\nenabled=0/g' /etc/yum.repos.d/CentOS-*

I thought putting it in a post didn't work because the rhnreg happened first,
so any packages installed via the activation key caused problems at that
stage.

I also (still) think disabling them that way is just setting yourself up for
problems later.  Next time you upgrade centos-release, are you not setting
yourself up for another sed?  Or does rpmnew save you?

jh

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
DISCLAIMER:
Information contained in this message may be privileged and confidential. 
If the reader of this message is not the intended recipient, be notified 
that any dissemination, distribution or copying of this communication is 
strictly prohibited. If this communication is received in error, please 
notify the sender immediately by replying to the message and deleting 
from your computer. Thank you





More information about the Spacewalk-list mailing list