Linux - Satellite
Globals
Configuration of subscription manager:
Commands
Yum/Sub.Manager
List Satellite managers:
Repos list:
Bypass a repo if not available:
Disable repo:
Modify config parameter (/etc/rhsm/rhsm.conf):
subscription-manager config --server.{parameter}={value}
# Ex: subscription-manager config --server.no_proxy=*
Maintain
Display Satellite components states:
Stop Satellite components:
Start Satellite components:
Hammer
Get health of Satellite components:
List Organization:
List content-view:
List activation-key:
Detail of an activation-key:
List associate subscription of an activation-key:
List hosts
Scripts
Disable PHP repos:
subscription-manager repos | awk '/Repo ID/ && /PHP/ {printf "yum-config-manager --disable %s\n", $NF}'
Procedures
Register Satellite 6 sur un host:
# Installer katello:
rpm -Uvh http://satellite.local/pub/katello-ca-consumer-latest.noarch.rpm
# Register (CentOS):
/usr/sbin/subscription-manager register \
--org 'Org' \
--name 'myserver1' \
--activationkey 'AK-RHEL8-SERVER' \
--serverurl=https://satellite.local:443/rhsm \
--baseurl=https://satellite.local/pulp/repos \
--force
# Installer l'agent katello
yum -y install katello-agent