RedHat System Registration Guide


RedHat System Registration Guide

Satellite registration/migration (for campus teams except OIT)

Choose an option :

Satellite registration/migration (within OIT)

Choose an option :

 

Register directly to RedHat customer portal

Simple Content Access - new method of attaching subscriptions to hosts

Failover Satellite/Capsule - Unregister from the current Satellite service then register to the failover Satellite service.

 

New OIT Satellite service settings for campus organizations (as of 7/8/2021)

 

Satellite Hostname

Capsule Hostname

Groups Using

Activation Key

rhn103sat.unity.ncsu.edu

rhn301cap.unity.ncsu.edu

All campus teams except OIT

NCSU

rhn103sat.unity.ncsu.edu

rhn300cap.unity.ncsu.edu

OIT

OIT

Puppet code for RHSM configuration (as of 7/8/2021)

profile::base::manage_rhsm: true

profile::base::rhsm_server_hostname: 'subscription.rhsm.redhat.com'

profile::base::rhsm_organization: ‘7939109’

profile::base::rhsm_activationkey: ‘CLS’



Code located at : https://github.ncsu.edu/ncstate-linux/infrastructure/blob/production/docs/puppet/profiles/base.md#red hat-subscription-manager

 

Satellite registration/migration (for campus teams except OIT)

Register a new host with activation key=NCSU

 

# dnf -y --nogpgcheck install http://rhn301cap.unity.ncsu.edu/pub/katello-ca-consumer-latest.noarch.rpm

# subscription-manager register --org="NCSU" --activationkey="NCSU"

 

Unregister from CDN, then register to the new Satellite service with activation key=NCSU

 

# subscription-manager unregister

# subscription-manager clean

# dnf -y --nogpgcheck install http://rhn301cap.unity.ncsu.edu/pub/katello-ca-consumer-latest.noarch.rpm

# subscription-manager register --org="NCSU" --activationkey="NCSU"

# subscription-manager refresh

 

Unregister from the OLD Satellite service , then register to the NEW Satellite service  with activation key=NCSU

 

# subscription-manager unregister

# subscription-manager clean

# dnf -y remove katello-ca-consumer-\*

# dnf -y --nogpgcheck install http://rhn301cap.unity.ncsu.edu/pub/katello-ca-consumer-latest.noarch.rpm

# subscription-manager register --org="NCSU" --activationkey="NCSU"

# subscription-manager refresh

 

Satellite registration/migration (within OIT)

Register a new host with activation key=OIT

 

# dnf -y --nogpgcheck install http://rhn300cap.unity.ncsu.edu/pub/katello-ca-consumer-latest.noarch.rpm

# subscription-manager register --org="OIT" --activationkey="OIT"

Unregister from CDN, then register to the new Satellite service with activation key=OIT

 

# subscription-manager unregister

# subscription-manager clean

# dnf -y --nogpgcheck install http://rhn300cap.unity.ncsu.edu/pub/katello-ca-consumer-latest.noarch.rpm

# subscription-manager register --org="OIT" --activationkey="OIT"

# subscription-manager refresh

 

Unregister from OLD SAT, then register to NEW SAT with activation key=OIT

 

# subscription-manager unregister

# subscription-manager clean

# dnf -y remove katello-ca-consumer-\*

# dnf -y --nogpgcheck install http://rhn300cap.unity.ncsu.edu/pub/katello-ca-consumer-latest.noarch.rpm

# subscription-manager register --org="OIT" --activationkey="OIT"

# subscription-manager refresh

 

Simple Content Access

The new Satellite 6.11 and greater uses Simple Content Access instead of the older method of attaching subscriptions to hosts. For more information see: 

https://access.redhat.com/articles/simple-content-access

 

Failover Satellite/Capsule

Unregister from the current Satellite service then register to the failover Satellite service.

 

The backup satellite is rhn104sat.unity.ncsu.edu 

The backup capsule is rhn302cap.unity.ncsu.edu

 

# subscription-manager unregister

# subscription-manager clean

# dnf -y remove katello-ca-consumer-\*

# dnf -y --nogpgcheck install http://rhn302cap.unity.ncsu.edu/pub/katello-ca-consumer-latest.noarch.rpm

# subscription-manager register --org="NCSU" --activationkey="NCSU"

 

OR 

 

# subscription-manager register --org="OIT" --activationkey="OIT"

# subscription-manager refresh

 

Clean and regenerate system entry (if re-registration fails)

https://access.redhat.com/solutions/5187461

 

Note : These instructions are only for hosts that are subscribed to the RedHat CDN

 

Confirm there are no duplicate system profile entries present in customer portal  (see links below).

If so, remove the profile manually by selecting the system.

 

Regenerate the identity certificate. If this fails, proceed to the next step

# subscription-manager identity \ --regenerate --force

Copy respective .pem file from /etc/pki/product-default/ directory to /etc/pki/product/ directory. Do NOT delete existing contents of /etc/pki/product

# cp /etc/pki/product-default/*.pem /etc/pki/product/

Clean and remove old certificate files and corrupted subscription-manager data

# rm -rf /etc/pki/consumer

# rm -rf /etc/pki/entitlement

# subscription-manager clean

# subscription-manager register --org="7939109" --activationkey="CLS"

 

RedHat links