redhat/subscription-repos-list

OpenSCAP packages, profile, and settings during OS Install

Defines the list of package repositories to activate for a registered RHEL Server system. This Param contains a key entry that corresponds the value of the variable definitions found in /etc/os-release for ID and the major version number from ID_VERSION (eg rhel-9).

Each key entry should contain a list of valid defined repos as named by the Repo ID: field returned from the subscription-manager repos ... command.

To list all available repositories, run the following command on a registered RHEL server:

  • subscription-manager repos --list | egrep "^Repo ID: " | awk ' { print $NF } ' | sort -n

Please refer to this Params default definition to see the default specified Package repositories for each RHEL Server version.

To set an override set the Params value on the Machine (directly, or via a Profile), with a definition you wish to override for the RHEL Server version. Each RHEL server version is a Key reference in the Param definition like rhel-9.

An examples of how to override Repositories are found below. Note that the key used must match the systems /etc/os-release value as built up by the ID Variable and the Major version number of the ID_VERSION variable, separated by dashes. ID of "rhel" and ID_VERSION of "9.2" would result in a look up key of rhel-9.

If there is no exact match to the Key tag format defined in the Param, no package repositories will be attempted to be activated.

YAML Format example:

rhel-9:
  - rhel-9-for-x86_64-baseos-rpms
  - rhel-9-for-x86_64-appstream-rpms

JSON Format example:

{
  "rhel-9": [
    "rhel-9-for-x86_64-baseos-rpms",
    "rhel-9-for-x86_64-appstream-rpms"
  ]
}