搜索

3.8. 从 Katello 代理迁移到远程执行

download PDF

远程执行 是管理主机上的软件包内容的首选方法。Katello Agent 已被弃用,并将在以后的 Satellite 版本中删除。按照以下步骤切换到远程执行。

先决条件

  • 您已在 Satellite 服务器上启用了 Satellite Tools 6.10 存储库。如需更多信息,请参阅从连接的网络安装 Satellite 服务器中的启用 Satellite 工具 6.10 存储库
  • 您已在 Satellite 服务器上同步了 Satellite Tools 6.10 存储库。如需更多信息,请参阅从连接的网络安装 Satellite 服务器中的同步 Satellite 工具 6.10 存储库
  • 之前已在内容主机上安装 katello-agent 软件包。

步骤

  1. 在内容主机上停止 goferd 服务:

    # systemctl stop goferd.service
  2. 在内容主机上禁用 goferd 服务:

    # systemctl disable goferd.service
  3. 删除内容主机上的 Katello 代理:

    警告

    如果您的主机安装在 Red Hat Virtualization 版本 4.4 或更高版本上,请不要删除 katello-agent 软件包,因为删除的依赖项会破坏主机。

    # yum remove katello-agent
  4. 将远程执行 SSH 密钥分发到内容主机。如需更多信息,请参阅 第 10.8 节 “为远程执行分发 SSH 密钥”
  5. 在 Satellite Web UI 中,导航到 Administer > Settings
  6. 选择 Content 选项卡。
  7. Use remote execution 默认 参数设为 Yes

Satellite 服务器现在使用远程执行的主机管理,而不是 katello-agent。

下表显示了用于执行特定软件包操作的远程执行等效命令。请参阅 hammer job-invocation create --help 以了解如何指定搜索查询来确定目标主机或主机组。

表 3.2. hammer 命令
操作Katello 代理远程执行

安装软件包

hammer 主机软件包安装

hammer job-invocation create --feature katello_package_install

安装软件包(主机集合)

hammer host-collection 软件包安装

hammer job-invocation create --feature katello_package_install

删除软件包

hammer 主机软件包删除

hammer job-invocation create --feature katello_package_remove

删除软件包(主机集合)

hammer host-collection 软件包被删除

hammer job-invocation create --feature katello_package_remove

更新软件包

hammer 主机软件包升级

hammer job-invocation create --feature katello_package_update

更新软件包(主机集合)

hammer host-collection 软件包更新

hammer job-invocation create --feature katello_package_update

更新所有软件包

hammer 主机软件包更新

hammer job-invocation create --feature katello_package_update

安装勘误

应用 hammer 主机勘误

hammer job-invocation create --feature katello_errata_install

安装勘误(主机集合)

hammer host-collection 勘误安装

hammer job-invocation create --feature katello_errata_install

安装软件包组

hammer host package-group install

hammer job-invocation create --feature katello_group_install

安装软件包组(主机集合)

hammer host-collection package-group install

hammer job-invocation create --feature katello_group_install

删除软件包组

hammer host package-group remove

hammer job-invocation create --feature katello_group_remove

删除软件包组(主机集合)

hammer host-collection package-group remove

hammer job-invocation create --feature katello_group_remove

更新软件包组

hammer 主机软件包更新

hammer job-invocation create --feature katello_group_update

更新软件包组(主机集合)

hammer host-collection package-group update

hammer job-invocation create --feature katello_group_update

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.