Skip to main content

Add CentOS 7 and EPEL 7 to Spacewalk

At some point, most of this will be unnecessary..
I have grown fond of using the spacewalk-common-channels - however, the CentOS7 stuff is not included in Spacewalk 2.2 (as of 2014-10-26).
Create a file to append to your spacewalk-common-channels.ini
cat << EOF > ~/centos7-spacewalk-common-channels.ini

[centos7]
archs    = %(_x86_archs)s
name     = CentOS 7 (%(arch)s)
gpgkey_url = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7
gpgkey_id = F4A80EB5
gpgkey_fingerprint = 6341 AB27 53D7 8A78 A7C2  7BB1 24C6 A8A7 F4A8 0EB5
yumrepo_url = http://mirrorlist.centos.org/?release=7&arch=%(arch)s&repo=os
dist_map_release = 7

[centos7-addons]
label    = %(base_channel)s-addons
archs    = %(_x86_archs)s
name     = CentOS 7 Addons (%(arch)s)
base_channels = centos7-%(arch)s
yumrepo_url =
http://mirrorlist.centos.org/?release=7&arch=%(arch)s&repo=addons

[centos7-centosplus]
label    = %(base_channel)s-centosplus
archs    = %(_x86_archs)s
name     = CentOS 7 Plus (%(arch)s)
base_channels = centos7-%(arch)s
yumrepo_url =
http://mirrorlist.centos.org/?release=7&arch=%(arch)s&repo=centosplus

[centos7-contrib]
label    = %(base_channel)s-contrib
archs    = %(_x86_archs)s
name     = CentOS 7 Contrib (%(arch)s)
base_channels = centos7-%(arch)s
yumrepo_url =
http://mirrorlist.centos.org/?release=7&arch=%(arch)s&repo=contrib

[centos7-extras]
label    = %(base_channel)s-extras
archs    = %(_x86_archs)s
name     = CentOS 7 Extras (%(arch)s)
base_channels = centos7-%(arch)s
yumrepo_url =
http://mirrorlist.centos.org/?release=7&arch=%(arch)s&repo=extras

[centos7-fasttrack]
label    = %(base_channel)s-fasttrack
archs    = %(_x86_archs)s
name     = CentOS 7 FastTrack (%(arch)s)
base_channels = centos7-%(arch)s
yumrepo_url =
http://mirrorlist.centos.org/?release=7&arch=%(arch)s&repo=fasttrack

[centos7-updates]
label    = %(base_channel)s-updates
archs    = %(_x86_archs)s
name     = CentOS 7 Updates (%(arch)s)
base_channels = centos7-%(arch)s
yumrepo_url =
http://mirrorlist.centos.org/?release=7&arch=%(arch)s&repo=updates

[epel7]
label    = epel7-%(base_channel)s
name     = EPEL 7 for %(base_channel_name)s
archs    = %(_x86_archs)s, ppc64
base_channels = centos7-%(arch)s scientific7-%(arch)s
gpgkey_url = http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
gpgkey_id = 352C64E5
gpgkey_fingerprint = 91E9 7D7C 4A5E 96F1 7F3E  888F 6A2F AEA2 352C 64E5
yumrepo_url =
http://mirrors.fedoraproject.org/mirrorlist?repo=epel-7&arch=%(arch)s

[spacewalk-nightly-client-centos7]
name     = Spacewalk Client (N) for %(base_channel_name)s
archs    = %(_x86_archs)s
base_channels = centos7-%(arch)s
gpgkey_url = %(_spacewalk_gpgkey_url)s
gpgkey_id = %(_spacewalk_gpgkey_id)s
gpgkey_fingerprint = %(_spacewalk_gpgkey_fingerprint)s
yumrepo_url = http://yum.spacewalkproject.org/nightly-client/RHEL/7/%(arch)s/

EOF
Append the CentOS 7 data to the existing files.
cp /etc/rhn/spacewalk-common-channels.ini /etc/rhn/spacewalk-common-channels.ini.orig
cat centos7-spacewalk-common-channels.ini >> /etc/rhn/spacewalk-common-channels.ini
See if the spacewalk-common-channels command picks up the changes.
 
 spacewalk-common-channels -l | egrep 'centos7|epel7'
 centos7:             i386, x86_64
 centos7-addons:      i386, x86_64
 centos7-centosplus:  i386, x86_64
 centos7-contrib:     i386, x86_64
 centos7-extras:      i386, x86_64
 centos7-fasttrack:   i386, x86_64
 centos7-updates:     i386, x86_64
 epel7:               i386, x86_64, ppc64
 spacewalk-nightly-client-centos7: i386, x86_64
Import the new EL7 packages...
/usr/bin/spacewalk-common-channels -v -s spacewalk.matrix.private -u satadmin -p Passw0rd -a x86_64 -k unlimited 'centos7' 'centos7-extras' 'epel7' 'spacewalk-nightly-client-centos7'

Comments

Popular posts from this blog

P2V using dd for KVM-QEMU guest

Preface: I have certainly not exhaustively tested this process.  I had a specific need and found a specific solution that worked. Situation:  I was issued a shiny new laptop running Red Hat Enterprise Linux 7 (with Corp VPN, certs, Authentication configuration, etc...)  The image was great, but I needed more flexibility on my bare metal.  So, my goal was to P2V the corporate image so I could just run it as a VM. * Remove corporate drive and install new SSD * install corp drive in external USB-3 case * Install RHEL 7 on new SSD * dd old drive to a disk-image file in a temp location which will be an image which is the same size as your actual drive (unless you have enough space in your destination to contain a temp and converted image) * convert the raw disk-image to a qcow file while pushing it to the final location - this step should reduce the disk size - however, I believe it will only reduce/collapse zero-byte blocks (not just free space - i.e. if you de...

Sun USS 7100 foo

TIP: put ALL of your LUNs into a designated TARGET and INITIATOR group when you create them.  If you leave them in the "default" group, then everything that does an discovery against the array will find them :-( I'm struggling to recognize a reason that a default should even be present on the array. Also - who, exactly, is Sun trying to kid.  The USS is simply a box.. running Solaris .. with IPMP and ZFS.  Great.  If you have ever attempted to "break-in" or "p0wn" your IBM HMC, you know that there are people out there that can harden a box - then.. there's Sun.  After a recent meltdown at the office I had to get quite intimate with my USS 7110 and learned quite a bit.  Namely: there's a shell ;-) My current irritation is how they attempt to "warn you" away from using the shell (my coverage expired a long time ago to worry about that) and then how they try to hide things, poorly. I was curious as to what version of SunOS it ...

"Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)"

"Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)" One issue that may cause this to arise is if you managed to break your /etc/fstab We had an engineer add a line with the intended options of "nfsvers=3" but instead added "-onfsvers=3" and it broke the system fairly catastrophically.