Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 6. Registering Clients
You can register a client running a Red Hat Enterprise Linux 6, 7, or 8 operating system to Capsule Servers that you configure for load balancing. For more information about registering clients and configuring them to use Puppet, see Registering Hosts in the Managing Hosts guide.
To register clients, proceed to one of the following procedures:
6.1. Red Hat Satellite host registration Link kopierenLink in die Zwischenablage kopiert!
You can register hosts with Satellite using the host registration feature, the Satellite API, or Hammer CLI.
Procedure
- In the Satellite web UI, navigate to Hosts > Register Host.
- Click Generate to create the registration command.
- Click on the files icon to copy the command to your clipboard.
- Log in to the host you want register and run the previously generated command.
Update subscription manager configuration for
rhsm.baseurlandserver.hostname:subscription-manager config \ --rhsm.baseurl=https://loadbalancer.example.com/pulp/content \ --server.hostname=loadbalancer.example.com
# subscription-manager config \ --rhsm.baseurl=https://loadbalancer.example.com/pulp/content \ --server.hostname=loadbalancer.example.comCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Check the
/etc/yum.repos.d/redhat.repofile and ensure that the appropriate repositories have been enabled.
CLI procedure
Generate the host registration command using the Hammer CLI:
hammer host-registration generate-command \ --activation-keys "My_Activation_Key"
# hammer host-registration generate-command \ --activation-keys "My_Activation_Key"Copy to Clipboard Copied! Toggle word wrap Toggle overflow If your hosts do not trust the SSL certificate of Satellite Server, you can disable SSL validation by adding the
--insecureflag to the registration command.hammer host-registration generate-command \ --activation-keys "My_Activation_Key" \ --insecure true
# hammer host-registration generate-command \ --activation-keys "My_Activation_Key" \ --insecure trueCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Log in to the host you want register and run the previously generated command.
Update subscription manager configuration for
rhsm.baseurlandserver.hostname:subscription-manager config \ --rhsm.baseurl=https://loadbalancer.example.com/pulp/content \ --server.hostname=loadbalancer.example.com
# subscription-manager config \ --rhsm.baseurl=https://loadbalancer.example.com/pulp/content \ --server.hostname=loadbalancer.example.comCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Check the
/etc/yum.repos.d/redhat.repofile and ensure that the appropriate repositories have been enabled.
API procedure
Generate the host registration command using the Satellite API:
curl -X POST https://satellite.example.com/api/registration_commands \ --user "My_User_Name" \ -H 'Content-Type: application/json' \ -d '{ "registration_command": { "activation_keys": ["My_Activation_Key_1, My_Activation_Key_2"] }}'# curl -X POST https://satellite.example.com/api/registration_commands \ --user "My_User_Name" \ -H 'Content-Type: application/json' \ -d '{ "registration_command": { "activation_keys": ["My_Activation_Key_1, My_Activation_Key_2"] }}'Copy to Clipboard Copied! Toggle word wrap Toggle overflow If your hosts do not trust the SSL certificate of Satellite Server, you can disable SSL validation by adding the
--insecureflag to the registration command.curl -X POST https://satellite.example.com/api/registration_commands \ --user "My_User_Name" \ -H 'Content-Type: application/json' \ -d '{ "registration_command": { "activation_keys": ["My_Activation_Key_1, My_Activation_Key_2"], "insecure": true }}'# curl -X POST https://satellite.example.com/api/registration_commands \ --user "My_User_Name" \ -H 'Content-Type: application/json' \ -d '{ "registration_command": { "activation_keys": ["My_Activation_Key_1, My_Activation_Key_2"], "insecure": true }}'Copy to Clipboard Copied! Toggle word wrap Toggle overflow Use an activation key to simplify specifying the environments. For more information, see Managing Activation Keys in the Content Management guide.
To enter a password as command line argument, use
username:passwordsyntax. Keep in mind this can save the password in the shell history.For more information about registration see Registering a Host to Red Hat Satellite in Managing Hosts.
- Log in to the host you want register and run the previously generated command.
Update subscription manager configuration for
rhsm.baseurlandserver.hostname:subscription-manager config \ --rhsm.baseurl=https://loadbalancer.example.com/pulp/content \ --server.hostname=loadbalancer.example.com
# subscription-manager config \ --rhsm.baseurl=https://loadbalancer.example.com/pulp/content \ --server.hostname=loadbalancer.example.comCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Check the
/etc/yum.repos.d/redhat.repofile and ensure that the appropriate repositories have been enabled.
6.2. (Deprecated) Registering Clients Using the Bootstrap Script Link kopierenLink in die Zwischenablage kopiert!
To register clients, enter the following command on the client. You must complete the registration procedure for each client.
Prerequisite
Ensure that you install the bootstrap script on the client and change the script’s file permissions to executable. For more information, see Registering Hosts to Red Hat Satellite Using The Bootstrap Script in the Managing Hosts guide.
On Red Hat Enterprise Linux 8, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 7, 6, or 5, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
The script prompts for the password corresponding to the Satellite user name you entered with the --login option.
6.3. (Deprecated) Registering Clients Manually with katello-ca-consumer rpm Link kopierenLink in die Zwischenablage kopiert!
To register clients manually, complete the following procedure on each client that you register.
Procedure
Remove the
katello-ca-consumerpackage if it is installed:yum remove 'katello-ca-consumer*'
# yum remove 'katello-ca-consumer*'Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install the
katello-ca-consumerpackage from the load balancer:rpm -Uvh http://loadbalancer.example.com/pub/katello-ca-consumer-latest.noarch.rpm
# rpm -Uvh http://loadbalancer.example.com/pub/katello-ca-consumer-latest.noarch.rpmCopy to Clipboard Copied! Toggle word wrap Toggle overflow Register the client and include the
--serverurland--baseurloptions:subscription-manager register \ --activationkey=My_Activation_Key \ --baseurl=https://loadbalancer.example.com/pulp/content/ \ --org=Your_Organization \ --serverurl=https://loadbalancer.example.com/rhsm
# subscription-manager register \ --activationkey=My_Activation_Key \ --baseurl=https://loadbalancer.example.com/pulp/content/ \ --org=Your_Organization \ --serverurl=https://loadbalancer.example.com/rhsmCopy to Clipboard Copied! Toggle word wrap Toggle overflow