12.5. Registration
12.5.1. Registering a Host 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
These steps show how to register hosts in Red Hat Satellite Server. Hosts provisioned by Satellite Server appear on the . Hosts registered to the Satellite Server via Red Hat Subscription Manager, which can occur either during the post phase of a kickstart or through the terminal, will appear on the page accessible through .
page accessible through
You must meet the following conditions before continuing with this task:
- 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.
subscription-manager clean
subscription-manager clean
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Register the system using the Red Hat Subscription Manager (RHSM):
subscription-manager register --org [your_org_name] --activationkey [your_activation_key]
# subscription-manager register --org [your_org_name] --activationkey [your_activation_key]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
Activation 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 commandman subscription-manager
.
The command line output after the registration should look like:
subscription-manager register --org MyOrg --activationkey TestKey-1
# subscription-manager register --org MyOrg --activationkey TestKey-1
The system has been registered with id: 62edc0f8-855b-4184-b1b8-72a9dc793b96
The system should now appear in the Red Hat Satellite Server.
Note
For systems with Red Hat Enterprise Linux 6.3, the release version defaults to version 6.0. To ensure that it is pointing to the 6.3 repository, please follow these steps:
- 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.
- Click.
12.5.2. Installing the Katello Agent 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Prerequisites
The Red Hat Common repository must be enabled in the Red Hat Satellite Server as it provides the required packages.
These steps show how to install and enable the Katello agent. The katello-agent must be enabled so that the Red Hat Satellite Server or Capsule Server can provide information about errata that are applicable for the system.
To install katello-agent:
- 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
# yum install katello-agent
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
12.5.3. Installing and Configuring the Puppet Agent 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
This section describes how to install and configure the Puppet agent on a Satellite 6 host. When you have correctly installed and configured the Puppet agent, you can navigate to to list all hosts visible to Red Hat Satellite Server.
Important
The puppet package is part of the Red Hat Common repository. Ensure you enable this repository before you proceed.
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
# yum install puppet
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Configure the puppet agent to start at boot:
- On Red Hat Enterprise Linux 6:
chkconfig puppet on
# chkconfig puppet on
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - On Red Hat Enterprise Linux 7:
systemctl enable puppet
# systemctl enable puppet
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 12.8. Configuring the Puppet Agent
Prerequisites
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
/etc/puppet/puppet.conf
file:vi /etc/puppet/puppet.conf
# vi /etc/puppet/puppet.conf
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the Puppet agent on the host:
puppet agent -t --server satellite.example.com
# puppet agent -t --server satellite.example.com
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 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.
- Click.
Note
Once the Puppet agent is configured on the host it will be listed under All Hosts but only when Any Context is selected as the host will not be assigned to an organization or location. To assign the host to an organization see Section 3.1.3, “Editing an Organization” and to assign the host to a location see Section 3.2.2, “Editing a Location”.