Red Hat Satellite

From wiki.vacula.xyz

Parts of Satellite

Host Groups

Host groups are best used to group systems by similar configurations.

Guides

Using Satellite as a Dynamic Inventory Source for Ansible

See https://wiki.vacula.xyz/index.php/Ansible#Satellite%2FForeman_Dynamic_Inventory

Adding a Custom Yum Product

Red Hat blog post with example: https://www.redhat.com/en/blog/epel-8-repo-satellite-6

  1. In Content -> Products, create a new product and add a repository.
  2. In Hosts -> Content Hosts, select all hosts that you want to retroactively add the product to. Use Action -> Manage Subscriptions to add the subscriptions.
  3. In Content -> Activation Keys, add the subscription to the Activation Key. Optionally, enable the repo in the Repository Sets for the key.

Finding a Host that is *not* in Specific Host Collections

(NOT (host_collection  =  "host_collection_name1")) AND (NOT ( host_collection =  "host_collection_name2" )) AND (NOT ( host_collection =  "host_collection_name3" )) 

Gotchas

RHEL for Virtual Datacenters licenses added to activation key

Manifests as:

Failed to enable Red Hat subscription on the installed system. 
Your Red Hat subscription might be invalid (such as due to an expired developer subscription).
Would you like to ignore this and continue with the installation?
Please respond 'yes' or 'no':

Resolution:

  • Remove any virtual datacenters license from the activation key

Servers are not configured with a sub-version of RHEL

Manifests as:

  • Curl errors when using dnf, `[Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]`
  • Unable to select a minor version of RHEL on system purpose screen

Resolution:

  • Add the repositories for the minor version to the content view, not just the major version

Incorrect Ansible collection installation location

Manifests as:

  • "couldn't resolve module/action 'community.general.redhat_subscription" when running an Ansible role

Resolution:

  • ansible-galaxy collection install community.general -p /usr/share/ansible/collections --force