How do I register RHEL 7.2 machines to Spacewalk ( RedHat Sattelite 5 )?
I want to manage RHEL 7.2 machines via Spacewalk which is on RHEL 6.6 until we move to the new Satellite 6.1.8. How can I register the machines to the current Spacewalk and subscribe to a new RHEL 7 base channel for the updates? Any suggestions or detailed steps are appreciated.
Responses
As far as I know, RHEL 7.2 should still include the rhn_register command to register to Satellite 5.7 and below.
Here are the full instructions in the Client Configuration Guide
Another option for registering with Satellite 5.x. You can register using username and password instead of activation key.
rhnreg_ks --serverUrl=https://yoursat5.domain.com/XMLRPC --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --activationkey=2-xxxxxxxxxxxxxxxxxxxx,1-sat5ChannelName
make a bootstrap file, and use an activation key. If you need consistency and some ease to registering a lot of hosts, make the activation key first, then create the bootstrap script.
The way you make the bootstrap script is (please tar up the directory first just as a precaution):
As a precaution, log in as root on your satellite server, and make a backup copy of the files in this directory (/var/www/html/pub/bootstrap) by (as root) -- cd to that directory and do a "tar cvf /var/www/html/pub/bootstrap_directory_justincase.tar /var/www/html/pub/bootstrap/"
`1) log in as an RHN admin (full rights)`
`2) go to the "admin" menu at the top menu bar`
`3) On the left menu bar, click on "Red Hat Satellite Configuration" (LINK AT LEFT) `
`4) Look for a link called "Bootstrap Script" and click it.`
`5) Once you are in the "Bootstrap Script" sub-menu, look for "update" and you'll want to examine the contents of the following directory on your satellite server /var/www/html/pub/bootstrap/ `
`6) manually edit the "bootstrap.sh" resulting file and enter your activation key (somewhere near line 75 or so). Look for a line called:`
ACTIVATION_KEYS=
Note the number/name of the activation key when you create it. Chances are, it will have a number preceding it (the number of the organization, 1st, 2nd etc) Let's say you only have 1 organization and you made the activation key "acme_corp"
# in the /var/www/html/pub/bootstrap/bootstrap.sh file you would enter this where you find the below value
ACTIVATION_KEYS=1-acme_corp
Validate that the "HOSTNAME" directive has the hostname and fully qualified domain name of your system such as:
HOSTNAME=rh1boston.example.com
Examine if you really do or do not want to do a full yum update upon registration of your system with the directive:
# this WOULD update your system
FULLY_UPDATE_THIS_BOX=1
or
# this WOULD NOT update your system
FULLY_UPDATE_THIS_BOX=0
The usual things about making sure you have subscriptions entitlements available, your satellite certificate is not expired, your channels are presented/available apply.
Once you have this, you can "grab" it with wget, chmod 755 it and then run it. Make sure to occasionally check for duplicate registered hosts/ip addresses because these will eventually consume expen$ive entitlements unnecessarily. Go to the "systems" menu, at top, then click "systems" at left, and click on the "duplicate systems" sub-menu. Determine which ones are the offending duplicates by examining the systemid and then check with "grep ID /etc/sysconfig/rhn/systemid" (as root)
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
