Chapter 6. Setting up CDS nodes
To provide repositories that clients can connect to and access the updated packages, you must first set up the CDS nodes.
The following process explains how to:
6.1. Registering the CDS node
The following instructions explain how to register your Content Delivery Server (CDS) nodes.
- Latest version of RHEL 8 is installed.
- Ensure you have root access to each of the CDS nodes.
On the CDS nodes, enter the following command:
# subscription-manager register --username <admin-example> --password <secret> Registering to: subscription.rhsm.redhat.com:443/subscription The system has been registered with ID: <a1b2c3-d4e5-f6g7-2345-hij890klm123>
Optional: If your system is already registered, you can override the subscription using the
# subscription-manager register --force
The new system will be available on the Red Hat Customer Portal, and the new CDS instance will not have any subscriptions attached to it.
- Navigate to the Red Hat Customer Portal.
- Verify that your system is available by locating it within the Customer Portal.
6.2. Attaching a subscription to the CDS node
The following instructions explain how to attach a subscription to your content delivery server (CDS) node.
You do not need to perform the following steps if you are using Simple Content Access.
- Ensure you have root access to the CDS node.
On the CDS node, check for available subscriptions that you can attach.
# subscription-manager list --available +-------------------------------------------+ Available Subscriptions +-------------------------------------------+ ... Subscription Name: <Subscription-Name> Pool ID: <pool-ID> ...
Attach a subscription using its
# subscription-manager attach --pool=<pool-ID> Successfully attached a subscription for: <Subscription-Name>
6.3. Enabling the required repositories on the CDS node
To install RHUI on your system, you must first enable certain repositories on your nodes which contain the required packages. The following instructions explain how to enable the
rhel-8-for-x86_64-appstream-rhui-rpms repositories on the CDS node.
CDS nodes require RHEL installations with base packages and with all repositories disabled except for the
rhel-8-for-x86_64-baseos-rhui-rpms and the
rhel-8-for-x86_64-appstream-rhui-rpms repositories. This requirement means that you cannot install any third-party configurations or softwares that are not necessary for the direct operation of the server. This restriction includes hardening or other non-Red Hat security software.
- Ensure that you have root access to all the CDS nodes you plan to use.
Navigate to a CDS node, list the enabled repositories, and verify that your system is correctly subscribed.
# yum repolist enabled repo id repo name codeready-builder-for-rhel-8-x86_64-rpms Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
Disable all repositories.
# subscription-manager repos --disable=*
Enable the relevant repositories.
# subscription-manager repos --enable rhel-8-for-x86_64-appstream-rpms --enable rhel-8-for-x86_64-baseos-rpms
- Repeat the steps on all the CDS nodes you plan to use.
List the enabled repositories and verify whether the relevant repositories appear on the list.
# yum repolist enabled repo id repo name rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)