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
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/ EOFAppend 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.iniSee 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_64Import 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
Post a Comment