[Spacewalk-list] Installed CentOS 7 - Yum Repos Not Correct
Scott Worthington
scott.c.worthington at gmail.com
Tue Jul 28 15:13:25 UTC 2015
On 7/28/2015 9:24 AM, Speagle, Andy wrote:
> Hi Folks,
>
> I finally got CentOS 7 to install from my SW 2.3 server… but for some reason,
> the yum repos that were configured for the new machine we’re my spacewalk
> channels… but were the default CentOS 7 repos… for some reason.
>
> Does anyone know why this might be?
>
> Thanks!
>
> Andy Speagle
Hello,
I will assume this is your first time using Spacewalk and kickstarting.
Server, while tied into Spacewalk/Satellite is still configured to pull from
external repos. You must make a configuration change on the server to stop
that behavior.
Typically, I have a kickstart snippet that disables external repos.
The snippet contains the following (excluding the ==start== and ==stop==):
==start==
# Disable all foreign yum repositories allowing only from Spacewalk/Satellite
mkdir -p /tmp/ks-tree-shadow/etc/yum.repos.d/custom
cat > /tmp/ks-tree-shadow/etc/yum.conf <<'END_OF_FILE'
[main]
cachedir=/var/cache/yum
reposdir=/etc/yum.repos.d/custom/
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h
# Allow only up to 3 kernels to be installed at one time
installonly_limit = 3
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d/custom
END_OF_FILE
==end==
Then, if you REALLY need external repos, you put a symlink from
/etc/yum.repos.d/custom/<file> to the actual file in
/etc/yum.repos.d/<file>
Hope that helps
More information about the Spacewalk-list
mailing list