Skip to content

Linux - Satellite

Globals

Configuration of subscription manager:

/etc/rhsm/

Commands

Yum/Sub.Manager

List Satellite managers:

subscription-manager list

Repos list:

subscription-manager repos

Bypass a repo if not available:

yum-config-manager --save --setopt=repo.skip_if_unavailable=true

Disable repo:

yum-config-manager --disable repo

Modify config parameter (/etc/rhsm/rhsm.conf):

subscription-manager config --server.{parameter}={value}
# Ex: subscription-manager config --server.no_proxy=*
Show subscription-manager identity of host:

subscription-manager identity

Maintain

Display Satellite components states:

satellite-maintain service status

Stop Satellite components:

satellite-maintain service stop

Start Satellite components:

satellite-maintain service start

Hammer

Get health of Satellite components:

hammer ping

List Organization:

hammer organization list

List content-view:

hammer content-view list

List activation-key:

hammer activation-key list

Detail of an activation-key:

hammer activation-key show --name {ak}

List associate subscription of an activation-key:

hammer activation-key subscriptions --name {ak}

List hosts

hammer host list

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
Back to top