이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 3. Registering Hosts
There are three main methods for registering hosts to Satellite Server or Capsule Server:
(Default method) Generate a
curlcommand from Satellite and run this command from unlimited number of hosts to register them using the global registration template. This method is suited for both freshly installed hosts and hosts that have been previously registered, for example, to Satellite 5 or another Satellite 6.By using this method you can also deploy Satellite SSH keys to hosts during registration to Satellite to enable hosts for remote execution jobs. For more information about the remote execution jobs, see Configuring and Setting up Remote Jobs.
By using this method you can also configure hosts with Red Hat Insights during registration to Satellite. For more information about using Insights with Satellite hosts, see Monitoring Hosts Using Red Hat Insights.
-
Download and install the consumer RPM
server.example.com/pub/katello-ca-consumer-latest.noarch.rpmand then run Subscription Manager. This method is suited for freshly installed hosts. - (Deprecated) Download and run the bootstrap script (server.example.com/pub/bootstrap.py). This method is suited for both freshly installed hosts and hosts that have been previously registered, for example, to Satellite 5 or another Satellite 6.
You can also register Atomic Hosts to Satellite Server or Capsule Server.
Use one of the following procedures to register a host:
Use the following procedures to install and configure host tools:
Supported Host Operating Systems
Hosts must use one of the following Red Hat Enterprise Linux versions:
- 6.1 or later*
- 7.0 or later
- 8.0 or later
Red Hat Enterprise Linux versions 6.1, 6.2, and 6.3 require subscription-manager and related packages to be updated manually. For more information, see https://access.redhat.com/solutions/1256763.
Supported Architectures
All architectures of Red Hat Enterprise Linux are supported:
- i386
- x86_64
- s390x
- ppc_64
3.1. Registering a Host to Red Hat Satellite 링크 복사링크가 클립보드에 복사되었습니다!
Hosts can be registered to Satellite by generating a curl command on Satellite and running this command on hosts. This method uses two templates: global registration template and host initial configuration template. That gives you complete control over the host registration process. You can set default templates by navigating to Administer > Settings, and clicking the Provisioning tab.
Prerequisites
-
The Satellite user that generates the
curlcommand must have thecreate_hostspermission. - You must have root privileges on the host that you want to register.
- You must have an activation key created.
-
Optional: If you want to register hosts to Red Hat Insights, you must synchronize the
rhel-7-server-rpmsrepository and make it available in the activation key that you use. This is required to install theinsights-clientpackage on hosts. Optional: If you want to register hosts through Capsule, ensure that the Registration feature is enabled on this Capsule.
Navigate to Infrastructure > Capsules, click the Capsule that you want to use, and locate the Registration feature in the Active features list.
Optional: If the Registration feature is not enabled on your Capsule, enter the following command on the Capsule to enable it:
satellite-installer \ --foreman-proxy-registration true \ --foreman-proxy-templates true \ --foreman-proxy-template-url 'http://capsule.example.com'
# satellite-installer \ --foreman-proxy-registration true \ --foreman-proxy-templates true \ --foreman-proxy-template-url 'http://capsule.example.com'Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure
- Navigate to Hosts > Register Host.
- Optional: Select a different Organization.
- Optional: Select a different Location.
- Optional: From the Host Group list, select the host group to associate the hosts with. Fields that inherit value from Host group: Operating system, Activation Keys and Lifecycle environment.
- Optional: From the Capsule list, select the Capsule to register hosts through. You must select the internal Capsule if you do not want to use an external Capsule.
- Optional: From the Operating system list, select the operating system of hosts that you want to register.
Optional: Select the Insecure option, if you want to make the first call insecure. During this first call, hosts download the CA file from Satellite. Hosts will use this CA file to connect to Satellite with all future calls making them secure.
It is recommended to avoid insecure calls.
If an attacker, located in the network between Satellite and a host, fetches the CA file from the first insecure call, the attacker will be able to access the content of the API calls to and from the registered host and the JSON Web Tokens (JWT). Therefore, if you have chosen to deploy SSH keys during registration, the attacker will be able to access the host using the SSH key.
Instead, you can manually copy and install the CA file on each host before registering the host.
To do this, find where Satellite stores the CA file by navigating to Administer > Settings > Authentication and locating the value of the SSL CA file setting.
Copy the CA file to the
/etc/pki/ca-trust/source/anchors/directory on hosts and enter the following commands:update-ca-trust enable update-ca-trust
# update-ca-trust enable # update-ca-trustCopy to Clipboard Copied! Toggle word wrap Toggle overflow Then register the hosts with a secure
curlcommand, such as:curl -sS https://satellite.example.com/register ...
# curl -sS https://satellite.example.com/register ...Copy to Clipboard Copied! Toggle word wrap Toggle overflow The following is an example of the
curlcommand with the--insecureoption:curl -sS --insecure https://satellite.example.com/register ...
# curl -sS --insecure https://satellite.example.com/register ...Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Select the Advanced tab.
From the Setup REX list, select whether you want to deploy Satellite SSH keys to hosts or not.
If set to
Yes, public SSH keys will be installed on the registered host. The inherited value is based on thehost_registration_remote_executionparameter. It can be inherited, for example from a host group, an operating system, or an organization. When overridden, the selected value will be stored on host parameter level.From the Setup Insights list, select whether you want to install
insights-clientand register the hosts to Insights.The Insights tool is available for Red Hat Enterprise Linux only. It has no effect on other operating systems.
You must enable the following repositories on a registered machine:
-
RHEL 6:
rhel-6-server-rpms -
RHEL 7:
rhel-7-server-rpms RHEL 8:
rhel-8-for-x86_64-appstream-rpmsThe
insights-clientpackage is installed by default on RHEL 8 except in environments whereby RHEL 8 was deployed with "Minimal Install" option.
-
RHEL 6:
Optional: In the Token lifetime (hours) field, change the validity duration of the JSON Web Token (JWT) that Satellite uses for authentication. The duration of this token defines how long the generated
curlcommand works. You can set the duration to 0 - 999 999 hours or unlimited.Note that Satellite applies the permissions of the user who generates the
curlcommand to authorization of hosts. If the user loses or gains additional permissions, the permissions of the JWT change too. Therefore, do not delete, block, or change permissions of the user during the token duration.The scope of the JWTs is limited to the registration endpoints only and cannot be used anywhere else.
- Optional: In the Remote Execution Interface field, enter the identifier of a network interface that hosts must use for the SSH connection. If you keep this field blank, Satellite uses the default network interface.
-
Optional: In the Install packages field, list the packages (separated with spaces) that you want to install on the host upon registration. This can be set by the
host_packagesparameter. -
Optional: Select the Update packages option to update all packages on the host upon registration. This can be set by the
host_update_packagesparameter. -
Optional: In the Repository field, enter a repository to be added before the registration is performed. For example, it can be useful to make the
subscription-managerpackage available for the purpose of the registration. For Red Hat family distributions, enter the URL of the repository, for examplehttp://rpm.example.com/. - Optional: In the Repository GPG key URL field, specify the public key to verify the signatures of GPG-signed packages. It needs to be specified in the ASCII form with the GPG public key header.
- In the Activation Keys field, enter one or more activation keys to assign to hosts.
- Optional: Select the Lifecycle environment.
- Optional: Select the Ignore errors option if you want to ignore subscription manager errors.
-
Optional: Select the Force option if you want to remove any
katello-ca-consumerrpms before registration and runsubscription-managerwith the--forceargument. - Click the Generate button.
-
Copy the generated
curlcommand. -
On the hosts that you want to register, run the
curlcommand asroot.
3.1.1. Customizing the Registration Templates 링크 복사링크가 클립보드에 복사되었습니다!
Use information in this section if you want to customize the registration process.
Note that all default templates in Satellite are locked. If you want to customize the registration process, you need to clone the default templates and edit the clones. Then, in Administer > Settings > Provisioning change the Default Global registration template and Default 'Host initial configuration' template settings to point to your custom templates.
Templates
The registration process uses the following registration templates:
-
The Global Registration template contains steps for registering hosts to Satellite. This template renders when hosts access the
/registerendpoint. - The Linux host_init_config default template contains steps for initial configuration of hosts after they are registered.
Global Parameters
You can configure the following global parameters by navigating to Configure > Global Parameters:
-
The
host_registration_remote_executionparameter is used in theremote_execution_ssh_keyssnippet, the default value istrue. -
The
host_registration_insightsparameter is used in theinsightssnippet, the default value istrue. -
The
host_packagesparameter is for installing packages on the host. -
The
remote_execution_ssh_keys,remote_execution_ssh_user,remote_execution_create_userandremote_execution_effective_user_methodparameters are used in theremote_execution_ssh_keys. For more details se the details of the snippet. The
encrypt_grubparameter is to enable setting of an encrypted bootloader password for the host, the default value isfalse.To actually set the password, use the
grub_passmacro in your template.
Snippets
Snippet is used in the Linux host_init_config default template:
-
The
remote_execution_ssh_keyssnippet deploys SSH keys to the host only when thehost_registration_remote_executionparameter istrue. -
The
insightssnippet downloads and installs the Red Hat Insights client when global parameterhost_registration_insightsis set to true. -
The
puppetlabs_repoandpuppet_setupsnippets downloads and installs puppet agent on the host (only when puppet master is present) -
The
host_init_config_postis empty snippet for user’s custom actions on during host initial configuration.
Variables
This table describes what variables are used in the Global Registration template.
| Variable | Command argument | Description |
|---|---|---|
|
| none | Current authenticated user object. |
|
|
|
If |
|
|
|
If |
|
|
| Host group of the host. |
|
|
| Host operating system. |
|
|
|
Override the value of the |
|
|
|
Override the value of |
|
|
| Set default interface of host for the remote execution. |
|
|
| Packages to install |
|
|
| Add repository on the host |
|
|
| Set repository GPG key form URL |
|
|
| Host activation keys. |
|
|
|
Remove any |
|
|
| Ignore subscription-manager errors |
|
|
| Life cycle environment id |
|
| none |
URL for the |
3.2. Registering a Host to Red Hat Satellite Manually 링크 복사링크가 클립보드에 복사되었습니다!
Use the following procedure to manually register a host to Red Hat Satellite 6.
Prerequisites
- Satellite Server, any Capsule Servers, and all hosts must be synchronized with the same NTP server, and have a time synchronization tool enabled and running.
- The daemon rhsmcertd must be running on the hosts.
- An activation key must be available for the host. For more information, see Managing Activation Keys in the Content Management Guide.
- Subscription Manager must be version 1.10 or later. The package is available in the standard Red Hat Enterprise Linux repository.
Procedure
Red Hat Enterprise Linux hosts register to the Red Hat Content Delivery Network by default.
Update each host configuration so that they receive updates from the correct Satellite Server or Capsule Server:
- Note the fully qualified domain name (FQDN) of Satellite Server or Capsule Server, for example server.example.com.
Log in to the host as the
rootuser and download thekatello-ca-consumer-latest.noarch.rpmpackage from Satellite Server or Capsule Server to which the host is to be registered. The consumer RPM configures the host to download content from the content source that is specified in Red Hat Satellite.curl --insecure --output katello-ca-consumer-latest.noarch.rpm https://satellite.example.com/pub/katello-ca-consumer-latest.noarch.rpm
# curl --insecure --output katello-ca-consumer-latest.noarch.rpm https://satellite.example.com/pub/katello-ca-consumer-latest.noarch.rpmCopy to Clipboard Copied! Toggle word wrap Toggle overflow Install the
katello-ca-consumer-latest.noarch.rpmpackage:yum localinstall katello-ca-consumer-latest.noarch.rpm
# yum localinstall katello-ca-consumer-latest.noarch.rpmCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteThe RPM package is not signed. If required, you can add the
--nosignatureoption to install the package. Thekatello-ca-consumer-hostname-1.0-1.noarch.rpmpackage is an additionalkatello-ca-consumerRPM that contains the server’s host name. Thekatello-ca-consumer-latest.noarch.rpmpackage always reflects the most recent version. Both serve the same purpose.Clear any old host data related to Red Hat Subscription Manager (RHSM):
subscription-manager clean
# subscription-manager cleanCopy to Clipboard Copied! Toggle word wrap Toggle overflow Register the host using RHSM:
subscription-manager register --org=your_org_name \ --activationkey=your_activation_key
# subscription-manager register --org=your_org_name \ --activationkey=your_activation_keyCopy to Clipboard Copied! Toggle word wrap Toggle overflow Example 3.1. Command Output after Registration:
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-72a9dc793b96Copy to Clipboard Copied! Toggle word wrap Toggle overflow
You can use the --environment option to override the Content View and life cycle environment defined by the activation key. For example, to register a host to the Content View "MyView" in a "Development" life cycle environment:
subscription-manager register --org=your_org_name \ --environment=Development/MyView \ --activationkey=your_activation_key
# subscription-manager register --org=your_org_name \
--environment=Development/MyView \
--activationkey=your_activation_key
For Red Hat Enterprise Linux 6.3 hosts, the release version defaults to Red Hat Enterprise Linux 6 Server and needs to be pointed to the 6.3 repository:
- In the Satellite web UI, navigate to Hosts > Content Hosts.
- Select the check box next to the host that needs to be changed.
- From the Select Action list, select Set Release Version.
- From the Release Version list, select 6.3.
- Click Done.
3.3. Registering an Atomic Host to Red Hat Satellite 링크 복사링크가 클립보드에 복사되었습니다!
Use the following procedure to register an Atomic Host to Red Hat Satellite 6.
Procedure
-
Log in to the Atomic Host as the
rootuser. Retrieve
katello-rhsm-consumerfrom Satellite Server:wget http://satellite.example.com/pub/katello-rhsm-consumer
# wget http://satellite.example.com/pub/katello-rhsm-consumerCopy to Clipboard Copied! Toggle word wrap Toggle overflow Change the mode of
katello-rhsm-consumerto make it executable:chmod +x katello-rhsm-consumer
# chmod +x katello-rhsm-consumerCopy to Clipboard Copied! Toggle word wrap Toggle overflow Run
katello-rhsm-consumer:./katello-rhsm-consumer
# ./katello-rhsm-consumerCopy to Clipboard Copied! Toggle word wrap Toggle overflow Register with Red Hat Subscription Manager:
subscription-manager register
# subscription-manager registerCopy to Clipboard Copied! Toggle word wrap Toggle overflow
The Katello agent is not supported on Atomic Hosts.
3.4. Registering a Host to Red Hat Satellite Using The Bootstrap Script 링크 복사링크가 클립보드에 복사되었습니다!
Deprecated Use registration via Global registration feature.
Use the bootstrap script to automate content registration and Puppet configuration. You can use the bootstrap script to register new hosts, or to migrate existing hosts to Red Hat Satellite 6 from Satellite 5, RHN, SAM, or RHSM.
The katello-client-bootstrap package is installed by default on Satellite Server’s base operating system. The bootstrap.py script is installed in the /var/www/html/pub/ directory to make it available to hosts at satellite.example.com/pub/bootstrap.py. The script includes documentation in the /usr/share/doc/katello-client-bootstrap-version/README.md file.
To use the bootstrap script, you must install it on the host. As the script is only required once, and only for the root user, you can place it in /root or /usr/local/sbin and remove it after use. This procedure uses /root.
Prerequisites
-
You have a Satellite user with the permissions required to run the bootstrap script. The examples in this procedure specify the
adminuser. If this is not acceptable to your security policy, create a new role with the minimum permissions required and add it to the user that will run the script. For more information, see Section 3.4.1, “Setting Permissions for the Bootstrap Script”. - You have an activation key for your hosts with the Satellite Tools 6.10 repository enabled. For information on configuring activation keys, see Managing Activation Keys in the Content Management Guide.
- You have created a host group. For more information about creating host groups, see Section 2.5, “Creating a Host Group”.
Puppet Considerations
If a host group is associated with a Puppet environment created inside a Production environment, Puppet fails to retrieve the Puppet CA certificate while registering a host from that host group.
To create a suitable Puppet environment to be associated with a host group, follow these steps:
Manually create a directory and change the owner:
mkdir /etc/puppetlabs/code/environments/example_environment chown apache /etc/puppetlabs/code/environments/example_environment
# mkdir /etc/puppetlabs/code/environments/example_environment # chown apache /etc/puppetlabs/code/environments/example_environmentCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Navigate to Configure > Environments and click Import environment from. The button name includes the FQDN of the internal or external Capsule.
- Choose the created directory and click Update.
Procedure
-
Log in to the host as the
rootuser. Download the script:
curl -O http://satellite.example.com/pub/bootstrap.py
# curl -O http://satellite.example.com/pub/bootstrap.pyCopy to Clipboard Copied! Toggle word wrap Toggle overflow Make the script executable:
chmod +x bootstrap.py
# chmod +x bootstrap.pyCopy to Clipboard Copied! Toggle word wrap Toggle overflow Confirm that the script is executable by viewing the help text:
On Red Hat Enterprise Linux 8:
/usr/libexec/platform-python bootstrap.py -h
# /usr/libexec/platform-python bootstrap.py -hCopy to Clipboard Copied! Toggle word wrap Toggle overflow On other Red Hat Enterprise Linux versions:
./bootstrap.py -h
# ./bootstrap.py -hCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Enter the bootstrap command with values suitable for your environment.
For the
--serveroption, specify the FQDN of Satellite Server or a Capsule Server. For the--location,--organization, and--hostgroupoptions, use quoted names, not labels, as arguments to the options. See Section 3.4.2, “Advanced Bootstrap Script Configuration” for advanced use cases.On Red Hat Enterprise Linux 8, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 5, 6, or 7, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Enter the password of the Satellite user you specified with the
--loginoption.The script sends notices of progress to stdout.
-
When prompted by the script, approve the host’s Puppet certificate. In the Satellite web UI, navigate to Infrastructure > Capsules and find the Satellite or Capsule Server you specified with the
--serveroption. - From the list in the Actions column, select Certificates.
- In the Actions column, click Sign to approve the host’s Puppet certificate.
- Return to the host to see the remainder of the bootstrap process completing.
- In the Satellite web UI, navigate to Hosts > All hosts and ensure that the host is connected to the correct host group.
Optional: After the host registration is complete, remove the script:
rm bootstrap.py
# rm bootstrap.pyCopy to Clipboard Copied! Toggle word wrap Toggle overflow
3.4.1. Setting Permissions for the Bootstrap Script 링크 복사링크가 클립보드에 복사되었습니다!
Use this procedure to configure a Satellite user with the permissions required to run the bootstrap script. To use the CLI instead of the web UI, see the CLI procedure.
Procedure
- In the Satellite web UI, navigate to Administer > Users.
- Select an existing user by clicking the required Username. A new pane opens with tabs to modify information about the selected user. Alternatively, create a new user specifically for the purpose of running this script.
- Click the Roles tab.
Select Edit hosts and Viewer from the Roles list.
ImportantThe Edit hosts role allows the user to edit and delete hosts as well as being able to add hosts. If this is not acceptable to your security policy, create a new role with the following permissions and assign it to the user:
-
view_organizations -
view_locations -
view_domains -
view_hostgroups -
view_hosts -
view_architectures -
view_ptables -
view_operatingsystems -
create_hosts
-
- Click Submit.
CLI procedure
Create a role with the minimum permissions required by the bootstrap script. This example creates a role with the name Bootstrap:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Assign the new role to an existing user:
hammer user add-role --id user_id --role Bootstrap
# hammer user add-role --id user_id --role BootstrapCopy to Clipboard Copied! Toggle word wrap Toggle overflow Alternatively, you can create a new user and assign this new role to them. For more information on creating users with Hammer, see Managing Users and Roles in the Administering Red Hat Satellite guide.
3.4.2. Advanced Bootstrap Script Configuration 링크 복사링크가 클립보드에 복사되었습니다!
This section has more examples for using the bootstrap script to register or migrate a host.
These examples specify the admin Satellite user. If this is not acceptable to your security policy, create a new role with the minimum permissions required by the bootstrap script. For more information, see Section 3.4.1, “Setting Permissions for the Bootstrap Script”.
Migrating a host from one Satellite 6 to another Satellite 6
Use the script with --force to remove the katello-ca-consumer-* packages from the old Satellite and install the katello-ca-consumer-* packages on the new Satellite.
On Red Hat Enterprise Linux 8, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 5, 6, or 7, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Migrating a host from Red Hat Network (RHN) or Satellite 5 to Satellite 6
The bootstrap script detects the presence of /etc/syconfig/rhn/systemid and a valid connection to RHN as an indicator that the system is registered to a legacy platform. The script then calls rhn-classic-migrate-to-rhsm to migrate the system from RHN. By default, the script does not delete the system’s legacy profile due to auditing reasons. To remove the legacy profile, use --legacy-purge, and use --legacy-login to supply a user account that has appropriate permissions to remove a profile. Enter the user account password when prompted.
On Red Hat Enterprise Linux 8, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 5, 6, or 7, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Registering a host to Satellite 6, omitting Puppet setup
By default, the bootstrap script configures the host for content management and configuration management. If you have an existing configuration management system and do not want to install Puppet on the host, use --skip-puppet.
On Red Hat Enterprise Linux 8, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 5, 6, or 7, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Registering a host to Satellite 6 for content management only
To register a system as a content host, and omit the provisioning and configuration management functions, use --skip-foreman.
On Red Hat Enterprise Linux 8, enter the following command:
/usr/libexec/platform-python bootstrap.py \ --server satellite.example.com \ --organization="Example Organization" \ --activationkey=activation_key \ --skip-foreman
# /usr/libexec/platform-python bootstrap.py \ --server satellite.example.com \ --organization="Example Organization" \ --activationkey=activation_key \ --skip-foremanCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 5, 6, or 7, enter the following command:
bootstrap.py --server satellite.example.com \ --organization="Example Organization" \ --activationkey=activation_key \ --skip-foreman
# bootstrap.py --server satellite.example.com \ --organization="Example Organization" \ --activationkey=activation_key \ --skip-foremanCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Changing the method the bootstrap script uses to download the consumer RPM
By default, the bootstrap script uses HTTP to download the consumer RPM (server.example.com/pub/katello-ca-consumer-latest.noarch.rpm). In some environments, you might want to allow HTTPS only between the host and Satellite. Use --download-method to change the download method from HTTP to HTTPS.
On Red Hat Enterprise Linux 8, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 5, 6, or 7, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Providing the host’s IP address to Satellite
On hosts with multiple interfaces or multiple IP addresses on one interface, you might need to override the auto-detection of the IP address and provide a specific IP address to Satellite. Use --ip.
On Red Hat Enterprise Linux 8, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 5, 6, or 7, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Enabling remote execution on the host
Use --rex and --rex-user to enable remote execution and add the required SSH keys for the specified user.
On Red Hat Enterprise Linux 8, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 5, 6, or 7, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Creating a domain for a host during registration
To create a host record, the DNS domain of a host needs to exist in Satellite prior to running the script. If the domain does not exist, add it using --add-domain.
On Red Hat Enterprise Linux 8, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 5, 6, or 7, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Providing an alternative FQDN for the host
If the host’s host name is not an FQDN, or is not RFC-compliant (containing a character such as an underscore), the script will fail at the host name validation stage. If you cannot update the host to use an FQDN that is accepted by Satellite, you can use the bootstrap script to specify an alternative FQDN.
Set
create_new_host_when_facts_are_uploadedandcreate_new_host_when_report_is_uploadedto false using Hammer:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Use
--fqdnto specify the FQDN that will be reported to Satellite:On Red Hat Enterprise Linux 8, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 5, 6, or 7, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.5. Installing the Katello Agent 링크 복사링크가 클립보드에 복사되었습니다!
You can install the Katello agent to remotely update Satellite clients.
The Katello agent is deprecated and will be removed in a future Satellite version. Migrate your processes to use the remote execution feature to update clients remotely. For more information, see Migrating from Katello Agent to Remote Execution in the Managing Hosts Guide.
The katello-agent package depends on the gofer package that provides the goferd service.
Prerequisites
- You have enabled the Satellite Tools 6.10 repository on Satellite Server. For more information, see Enabling the Satellite Tools 6.10 Repository in Installing Satellite Server from a Connected Network.
- You have synchronized the Satellite Tools 6.10 repository on Satellite Server. For more information, see Synchronizing the Satellite Tools 6.10 Repository in Installing Satellite Server from a Connected Network.
- You have enabled the Satellite Tools 6.10 repository on the client.
Procedure
Install the
katello-agentpackage:yum install katello-agent
# yum install katello-agentCopy to Clipboard Copied! Toggle word wrap Toggle overflow Start the
goferdservice :systemctl start goferd
# systemctl start goferdCopy to Clipboard Copied! Toggle word wrap Toggle overflow
3.6. Installing Tracer 링크 복사링크가 클립보드에 복사되었습니다!
Use this procedure to install Tracer on Red Hat Satellite 6.10, and access Traces. Tracer displays a list of services and applications that are outdated and need to be restarted. Traces is the output generated by Tracer in the Satellite web UI.
Prerequisites
- The host must be registered to Red Hat Satellite.
- The Red Hat Satellite Tools 6.10 repository must be enabled and synchronized on Satellite Server, and enabled on the host.
Procedure
On the content host, install the
katello-host-tools-tracerRPM package:yum install katello-host-tools-tracer
# yum install katello-host-tools-tracerCopy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the following command:
katello-tracer-upload
# katello-tracer-uploadCopy to Clipboard Copied! Toggle word wrap Toggle overflow - In the Satellite web UI, navigate to Hosts > All hosts, then click the required host name.
- In the Properties tab, examine the Properties table and find the Traces item. If you cannot find a Traces item in the Properties table, then Tracer is not installed.
- Navigate to Hosts > Content Hosts, then click the required host name.
- Click the Traces tab to view Traces.
3.7. Installing and Configuring the Puppet Agent 링크 복사링크가 클립보드에 복사되었습니다!
Use this procedure to install and configure the Puppet agent on a host. For more information about Puppet, see the Puppet Guide.
Prerequisites
- The host must be registered to Red Hat Satellite.
- The host must have a Puppet environment assigned to it.
- The Red Hat Satellite Tools 6.10 repository must be enabled and synchronized on Satellite Server, and enabled on the host.
Procedure
-
Log in to the host as the
rootuser. Install the Puppet agent package:
yum install puppet-agent
# yum install puppet-agentCopy to Clipboard Copied! Toggle word wrap Toggle overflow Configure the Puppet agent to start on boot:
On Red Hat Enterprise Linux 6:
chkconfig puppet on
# chkconfig puppet onCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 7:
systemctl enable puppet
# systemctl enable puppetCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Append the following server and environment settings to the
/etc/puppetlabs/puppet/puppet.conffile. Set theenvironmentparameter to the name of the Puppet environment to which the host belongs:environment = My_Example_Org_Library server = satellite.example.com ca_server = satellite.example.com
environment = My_Example_Org_Library server = satellite.example.com ca_server = satellite.example.comCopy to Clipboard Copied! Toggle word wrap Toggle overflow Run the Puppet agent on the host:
puppet agent -t
# puppet agent -tCopy to Clipboard Copied! Toggle word wrap Toggle overflow - In the Satellite web UI, navigate to Infrastructure > Capsules.
- From the list in the Actions column for the required Capsule Server, select Certificates.
- Click Sign to the right of the required host to sign the SSL certificate for the Puppet client.
Enter the
puppet agentcommand again:puppet agent -t
# puppet agent -tCopy to Clipboard Copied! Toggle word wrap Toggle overflow
3.8. Migrating from Katello Agent to Remote Execution 링크 복사링크가 클립보드에 복사되었습니다!
Remote Execution is the preferred way to manage package content on hosts. The Katello Agent is deprecated and will be removed in a future Satellite version. Follow these steps to switch to Remote Execution.
Prerequisites
- You have enabled the Satellite Tools 6.10 repository on Satellite Server. For more information, see Enabling the Satellite Tools 6.10 Repository in Installing Satellite Server from a Connected Network.
- You have synchronized the Satellite Tools 6.10 repository on Satellite Server. For more information, see Synchronizing the Satellite Tools 6.10 Repository in Installing Satellite Server from a Connected Network.
-
You have previously installed the
katello-agentpackage on content hosts.
Procedure
Stop the goferd service on content hosts:
systemctl stop goferd.service
# systemctl stop goferd.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow Disable the goferd service on content hosts:
systemctl disable goferd.service
# systemctl disable goferd.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the Katello agent on content hosts:
WarningIf your host is installed on Red Hat Virtualization version 4.4 or lower, do not remove the
katello-agentpackage because the removed dependencies corrupt the host.yum remove katello-agent
# yum remove katello-agentCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Distribute the remote execution SSH keys to the content hosts. For more information, see Section 10.8, “Distributing SSH Keys for Remote Execution”.
- In the Satellite web UI, navigate to Administer > Settings.
- Select the Content tab.
- Set the Use remote execution by default parameter to Yes.
The Satellite server now uses host management by remote execution instead of katello-agent.
The following table shows the remote execution equivalent commands to perform specific package actions. See hammer job-invocation create --help to learn how to specify search queries to determine the target hosts or host collections.
| Action | Katello Agent | Remote Execution |
|---|---|---|
| Install a package | hammer host package install | hammer job-invocation create --feature katello_package_install |
| Install a package (host collection) | hammer host-collection package install | hammer job-invocation create --feature katello_package_install |
| Remove a package | hammer host package remove | hammer job-invocation create --feature katello_package_remove |
| Remove a package (host collection) | hammer host-collection package remove | hammer job-invocation create --feature katello_package_remove |
| Update a package | hammer host package upgrade | hammer job-invocation create --feature katello_package_update |
| Update a package (host collection) | hammer host-collection package update | hammer job-invocation create --feature katello_package_update |
| Update all packages | hammer host package update | hammer job-invocation create --feature katello_package_update |
| Install errata | hammer host errata apply | hammer job-invocation create --feature katello_errata_install |
| Install errata (host collection) | hammer host-collection errata install | hammer job-invocation create --feature katello_errata_install |
| Install a package group | hammer host package-group install | hammer job-invocation create --feature katello_group_install |
| Install a package group (host collection) | hammer host-collection package-group install | hammer job-invocation create --feature katello_group_install |
| Remove a package group | hammer host package-group remove | hammer job-invocation create --feature katello_group_remove |
| Remove a package group (host collection) | hammer host-collection package-group remove | hammer job-invocation create --feature katello_group_remove |
| Update a package group | hammer host package-group update | hammer job-invocation create --feature katello_group_update |
| Update a package group (host collection) | hammer host-collection package-group update | hammer job-invocation create --feature katello_group_update |