2.2. 使用 Red Hat Satellite 为 RHEL 部署配置命令行助手
您可以将 RHEL Lightspeed 支持的命令行助手安装到注册到 Red Hat Satellite 的主机。为此,请更新命令行助手端点,以便注册到 Satellite 的 RHEL 系统可以使用 Satellite 服务器代理命令行助手。
先决条件
- 您的系统已在 Insights for Red Hat Enterprise Linux 中注册。
- 您在注册到 Satellite 6.17+ 服务器或更高版本的主机上使用命令行助手。
- Satellite 服务器必须连接到互联网。
- 您已在主机上启用了 AppStream 存储库,以便安装命令行助手。
流程
在您的注册主机上安装由 RHEL Lightspeed 驱动的命令行助手。
sudo dnf install command-line-assistant
$ sudo dnf install command-line-assistantCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
查找并打开
/etc/xdg/command-line-assistant/config.toml文件。 在
config.toml文件中,替换 endpoint 配置选项以指向 Satellite 或 Capsule 主机名,例如:#The endpoint points to an API server. endpoint = "https://satellite.example.server.com/api/lightspeed/v1"
#The endpoint points to an API server. endpoint = "https://satellite.example.server.com/api/lightspeed/v1"Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
在
config.toml文件中保存更改。 重启命令行助手守护进程(
clad)以使更改生效:sudo systemctl restart clad
$ sudo systemctl restart cladCopy to Clipboard Copied! Toggle word wrap Toggle overflow