SUSE Manager/Register RedHat traditional clients

From MicroFocusInternationalWiki
Revision as of 16:30, 23 August 2017 by Dvosburg (Talk | contribs) (Traditionally managed clients (rhn stack))

Jump to: navigation, search

Traditionally managed clients (rhn stack)

SUSE Manager Main Page

In order to register RedHat (traditional/RHN clients) the following steps are necessary. These instructions are for RHEL 7, but can be adjusted/repeated to accommodate RHEL 6.

1. Be sure to copy any and all relevant GPG keys to /srv/www/htdocs/pub. This includes the Spacewalk key, SUSE keys and the Red Hat keys. By copying them there, you can reference them in a comma-delimited list in your bootstrap script (see example below)

 Spacewalk key:
 Red Hat keys:

3. Mirror the res7 SUSE Manager tools repository. This will work whether patches come from SCC or from RH native CDN. SUSE Manager subscriptions include mirroring permissions for the res7 SUSE Manager tools channel. Add it to be sync'd from the SUSE Manager command line like this:

 mgr-sync add channels rhel-x86_64-server-7 rhel-x86_64-server-7

4. Once the tools sync is complete, you will need to ensure RHEL base media is there as a custom child channel under this parent as well. If you are using the Expanded Support channels,

Create/edit your bootstrap script to correctly reflect the following:

# can be edited, but probably correct (unless created during initial install):

# NOTE: ACTIVATION_KEYS *must* be used to bootstrap a client machine.




yum clean all
# Install the prerequisites
yum -y install yum-rhn-plugin rhn-setup 

Add these lines to the very bottom of your script, (just before echo “-bootstrap complete -” )

# This section is for commands to be executed after registration
mv /etc/yum.repos.d/Cent* /root/
yum clean all
chkconfig rhnsd on
chkconfig osad on
service rhnsd restart
service osad restart