Install and Register Spacewalk Clients

by | Jan 2, 2015 | Spacewalk (CentOS Satellite Version)

This article shows you How To register Spacewalk Clients to the Spacewalk Server. All you need is to make sure before the registration you are logged in as ROOT and the SSL Cert is downloaded from the server to the client host. There is a Once Click BASH SCRIPT as well you can download.

You can download the SSL cert from the Spacewalk server through this URL

# wget https://your-satellite.example.com/pub/RHN-ORG-TRUSTED-SSL-CERT -P /usr/share/rhn/ 

First you need to download some rpms

# rpm -Uvh http://yum.spacewalkproject.org/2.2-client/RHEL/6/x86_64/spacewalk-client-repo-2.2-1.el6.noarch.rpm
# BASEARCH=$(uname -i)
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/$BASEARCH/epel-release-6-8.noarch.rpm
# yum -y install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin
# yum -y install rhncfg
# yum -y install osad
# yum -y install rhncfg-actions.noarch
# yum -y install spacewalk-abrt.noarch
# rhn-actions-control --enable-all

Then you need to restart sshd

# service sshd restart

Lastly, would be to register the client via the command given below.

# rhnreg_ks --serverUrl=https://your-satellite.example.com/XMLRPC --activationkey=1-your activation key

*NOTE: The URL address needs to be Fully Qualified Domain Name(FQDN) otherwise the there will be issues registering / pushing updates to clients.

If you encounter any errors during the process, let us know via Contact Us and will get it resolved promptly.

Related Articles….