• 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 -
  • Create a new repository file which contains the Debian/Ubuntu client. This example chooses Ubuntu 20.04:
    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.

  • Install apt-transport-katello and katello-upload-profile. This depends on and automatically installs the subscription-manager for Debian/Ubuntu:
    apt-get update && apt-get -y install apt-transport-katello katello-upload-profile
  • Download and execute a script from your system to install all necessary certificates:
    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
  • Register your host with an appropriate activation key:
    subscription-manager register --org="{{ organization.label }}" --name="<Host Name>" --activationkey="<Activation Key Name>"