Bitcoin Exchange Script

- Advertisement -

How to subscribe CentOS Server to Katello/Foreman

(: January 10, 2018)

How to subscribe centos server to katello/foreman. This tutorial will guide you through steps needed to subscribe CentOS server to consume content from Katello Server. This assumes you already have katello installed and running, you can use my Ansible Playbook Available to do quick installation.

All of these steps are performed on the host you want to register

Add epel and katello agent repos:

yum install -y
yum -y install

Replace 3.4 with katello agent version you want to use.{text-align:left} img{margin:0 auto 0 0}

Install subscription manager

yum -y install subscription-manager

Now download and install ca-consumer package to get a copy of the CA certificate for Katello Server.

rpm -Uvh

For above command to work, vm should be able to resolve hostname.

Register the client with Katello Server:

subscription-manager register --org="Angani" --activationkey="activation-key-name"
subscription-manager repos --list

Activation key need to be created on foreman prior to running above command.

  • Installed on all client machines that are connected to Katello Server.
  • Katello Agent must be enabled on client servers to push the updates from the Katello Dashboard.
  • Also, It provides information about errata that are applicable to the system to the Katello Dashboard from there you can get to know all the details of what is required to keep the client-server up-to-date.
yum install katello-agent

Start the Katello agent service and enable it to start at the system boot.

systemctl start goferd
systemctl enable goferd

Remove or move all of your repositories except redhat.repo present inside the /etc/yum.repos.d/.

cd /etc/yum.repos.d/
mkdir old
mv CentOS-* epel*  katello* old/

Verify whether the Katello-agent is installed on the host using the Katello Dashboard.

Hosts –> Content Hosts –>

– To install a package, go to Hosts –> Content Hosts –> Select Host  –> Packages.
– Chose Package Action as “Package Remove” and then type the name of a package; then click on perform.{text-align:left} img{margin:0 auto 0 0}

Get real time updates directly on you device, subscribe now.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Privacy & Cookies Policy