Select a Content Source:
Add the GPG public key used to sign DEB packages from your system to download the Debian/Ubuntu client from your system:
apt-get -y install gnupg
mkdir -p /etc/apt/trusted.gpg.d
wget "https://{{ noCapsulesFound ? katelloHostname : hostname(selectedCapsule.url) }}/pub/pulp_deb_signing.key" -O - | apt-key add -
mkdir -p /etc/apt/sources.list.d
cat < /etc/apt/sources.list <<'EOF'
deb http://{{ noCapsulesFound ? katelloHostname : hostname(selectedCapsule.url) }}/pulp/deb/{{ organization.label }}/Library/custom/Ubuntu_Client/Ubuntu_Client_20_04/ default all
EOF
Here Ubuntu_Client is a product name, Ubuntu_Client_20_04 is the repository inside the product, and Library is a lifecycle environment.
apt-get update && apt-get -y install apt-transport-katello katello-upload-profile
wget --no-check-certificate -O katello-rhsm-consumer https://{{ noCapsulesFound ? katelloHostname : hostname(selectedCapsule.url) }}/pub/katello-rhsm-consumer
/bin/bash -x katello-rhsm-consumer 2< /root/katello-rhsm-consumer.log
subscription-manager register --org="{{ organization.label }}" --name="<Host Name>" --activationkey="<Activation Key Name>"