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.

Prerequisites

  • Latest version of RHEL 8 is installed.
  • Ensure you have root access to each of the CDS nodes.

Procedure

  1. 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>
  2. Optional: If your system is already registered, you can override the subscription using the --force option.

    # 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.

Verification

  1. Navigate to the Red Hat Customer Portal.
  2. 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.

Note

You do not need to perform the following steps if you are using Simple Content Access.

Prerequisites

  • Ensure you have root access to the CDS node.

Procedure

  1. 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>
    ...
  2. Attach a subscription using its pool ID.

    # 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-baseos-rhui-rpms and rhel-8-for-x86_64-appstream-rhui-rpms repositories on the CDS node.

Note

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.

Prerequisites

  • Ensure that you have root access to all the CDS nodes you plan to use.

Procedure

  1. 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)
  2. Disable all repositories.

    # subscription-manager repos --disable=*
  3. Enable the relevant repositories.

    # subscription-manager repos --enable rhel-8-for-x86_64-appstream-rpms --enable rhel-8-for-x86_64-baseos-rpms
  4. Repeat the steps on all the CDS nodes you plan to use.

Verification

  • 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)