Red Hat Satellite: Difference between revisions
From wiki.vacula.xyz
No edit summary |
|||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== 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 | |||
# In <code>Content -> Products</code>, create a new product and add a repository. | |||
# In <code>Hosts -> Content Hosts</code>, select all hosts that you want to retroactively add the product to. Use <code>Action -> Manage Subscriptions</code> to add the subscriptions. | |||
# In <code>Content -> Activation Keys</code>, add the subscription to the Activation Key. Optionally, enable the repo in the <code>Repository Sets</code> 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 == | == Gotchas == | ||
=== RHEL for Virtual Datacenters licenses added to activation key === | === RHEL for Virtual Datacenters licenses added to activation key === | ||
| Line 10: | Line 29: | ||
Resolution: | Resolution: | ||
* Remove any virtual datacenters license from the activation key | * Remove any virtual datacenters license from the activation key | ||
=== Servers are not configured with a sub-version of RHEL === | === Servers are not configured with a sub-version of RHEL === | ||
| Line 21: | Line 39: | ||
* Add the repositories for the minor version to the content view, not just the major version | * 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: | |||
* <code>ansible-galaxy collection install community.general -p /usr/share/ansible/collections --force</code> | |||
Latest revision as of 14:45, 21 April 2025
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
- In
Content -> Products, create a new product and add a repository. - In
Hosts -> Content Hosts, select all hosts that you want to retroactively add the product to. UseAction -> Manage Subscriptionsto add the subscriptions. - In
Content -> Activation Keys, add the subscription to the Activation Key. Optionally, enable the repo in theRepository Setsfor 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