12.5.1. Registering a Host
- Ensure that all steps in Section 12.2, “Configuring Hosts for Registration” have been completed.
- Make sure there is a pre-existing activation key for the system or create an activation key for the system. See Section 9.1, “Creating an Activation Key” for instructions on creating an activation key.
Procedure 12.6. Registering Systems
- Open a terminal console and login as root on the command line.
- Clear old system data in preparation for registering. This makes sure that your updated system data is uploaded correctly.
- Register the system using the Red Hat Subscription Manager (RHSM):
# subscription-manager register --org [your_org_name] --activationkey [your_activation_key]
NoteActivation keys will allow you to add environments, provisioning templates and dictate what subscriptions are available and should be applied to the registering system.There are various options that may be added. For more information, use the command
# subscription-manager register --org MyOrg --activationkey TestKey-1 The system has been registered with id: 62edc0f8-855b-4184-b1b8-72a9dc793b96
- On Red Hat Satellite, select → .
- Select the system that needs to be changed and click.
- Click on thetab.
- Select '6.3' from thedrop-down menu.
12.5.2. Installing the Katello Agent
The Red Hat Common repository must be enabled in the Red Hat Satellite Server as it provides the required packages.
- Open a terminal console and log in as root on the command line.
- Install the katello-agent using the following command:
# yum install katello-agent
12.5.3. Installing and Configuring the Puppet Agent
Procedure 12.7. Installing and Enabling the Puppet Agent
- Open a terminal console and log in as root.
- Install the Puppet agent:
# yum install puppet
- Configure the puppet agent to start at boot:
- On Red Hat Enterprise Linux 6:
# chkconfig puppet on
- On Red Hat Enterprise Linux 7:
# systemctl enable puppet
Procedure 12.8. Configuring the Puppet Agent
You must meet the following conditions before continuing with this task:
- The host must be registered to the Red Hat Satellite Server.
- The Red Hat Common repository must be enabled.
- Puppet packages must be installed on the host.
- Configure the Puppet agent by changing the
# vi /etc/puppet/puppet.conf
[main] # The Puppet log directory. # The default value is '$vardir/log'. logdir = /var/log/puppet # Where Puppet PID files are kept. # The default value is '$vardir/run'. rundir = /var/run/puppet # Where SSL certificates are kept. # The default value is '$confdir/ssl'. ssldir = $vardir/ssl [agent] # The file in which puppetd stores a list of the classes # associated with the retrieved configuratiion. Can be loaded in # the separate ``puppet`` executable using the ``--loadclasses`` # option. # The default value is '$confdir/classes.txt'. classfile = $vardir/classes.txt pluginsync = true report = true ignoreschedules = true daemon = false ca_server = satellite.example.com server = satellite.example.com # Where puppetd caches the local configuration. An # extension indicating the cache format is added automatically. # The default value is '$confdir/localconfig'. localconfig = $vardir/localconfig
- Run the Puppet agent on the host:
# puppet agent -t --server satellite.example.com
- Sign the SSL certificate for the puppet client through the Satellite Server web interface:
- Log in to the Satellite Server through the web interface.
- Select→ .
- Clickto the right of the required host.