第 3 章 Provisioning the command-line assistant to RHEL deployments with Red Hat Satellite
You can install the command-line assistant powered by RHEL Lightspeed to your host registered to Red Hat Satellite. For that, update the command-line assistant endpoint, so that the RHEL system registered to Satellite can proxy command-line assistant by using the Satellite Server.
Prerequisites
- Your system is registered with Red Hat Lightspeed for Red Hat Enterprise Linux.
- You are using the command-line assistant on a host registered to a Satellite 6.17+ server or later versions.
- The Satellite Server must be connected to the internet.
- You have enabled the AppStream repository on the host to be able to install the command-line assistant.
Procedure
Install command-line assistant powered by RHEL Lightspeed on your registered host.
$ sudo dnf install command-line-assistant-
Locate and open the
/etc/xdg/command-line-assistant/config.tomlfile. In the
config.tomlfile, replace the endpoint configuration option to point to your Satellite or Capsule hostname, for example:#The endpoint points to an API server. endpoint = "https://satellite.example.server.com/api/lightspeed/v1"-
Save the changes in the
config.tomlfile. Restart the command-line assistant daemon (
clad) for the changes to take effect:$ sudo systemctl restart clad
Troubleshooting
If the command-line assistant cannot trust the Red Hat Satellite certificate authority (CA), it cannot establish a secure connection to the Satellite Server. As a result, the assistant does not function. To work around this problem:
Copy the Satellite CA certificate to the system truststore:
$ sudo cp /etc/rhsm/ca/katello* /etc/pki/ca-trust/source/anchors/Update the CA trust database:
$ sudo update-ca-trust