1.3. 使用 Standalone Hammer
您可以在运行没有安装 Satellite 服务器的 Red Hat Enterprise Linux 8 的主机上安装 hammer,并使用它来将主机连接到远程 Satellite。
前提条件
- 确保您将主机注册到 Satellite Server 或 Capsule Server。如需更多信息, 请参阅管理主机中的 注册主机。
确保您在卫星服务器或胶囊服务器上同步以下存储库:如需更多信息 ,请参阅管理内容中的 同步存储库。
- rhel-8-for-x86_64-baseos-rpms
- rhel-8-for-x86_64-appstream-rpms
- satellite-utils-6.13-for-rhel-8-x86_64-rpms
流程
在主机上,完成以下步骤来安装 hammer :
启用所需的软件仓库:
# subscription-manager repos --enable=rhel-8-for-x86_64-baseos-rpms \ --enable=rhel-8-for-x86_64-appstream-rpms \ --enable=satellite-utils-6.13-for-rhel-8-x86_64-rpms启用 Satellite Utils 模块:
# dnf module enable satellite-utils:el8安装
hammer:# dnf install rubygem-hammer_cli_katello编辑
/etc/hammer/cli.modules.d/foreman.yml文件中的:host:条目,使其包含 Satellite IP 地址或 FQDN。:host: 'https://satellite.example.com'