第 5 章 集成 Red Hat Satellite 和 Ansible Automation Platform


您可以集成 Red Hat Satellite 和 Ansible Automation Platform,以使用 Satellite 服务器作为 Ansible Automation Platform 的动态清单源。

您还可以使用置备回调功能,从主机或 Ansible Automation Platform 管理的主机上运行 playbook。从 Satellite 服务器置备新主机时,您可以使用置备回调功能从 Ansible Automation Platform 触发 playbook 运行。playbook 在置备过程后配置主机。

要将 Satellite 服务器作为动态清单项目添加到 Ansible Automation Platform 中,您必须在 Ansible Automation Platform 上为 Satellite Server 用户创建一个凭证,将 Ansible Automation Platform 用户添加到凭据中,然后配置清单源。

先决条件

  • 如果您的 Satellite 部署较大,例如,使用非管理员用户管理数以万计的主机,则使用非 admin 用户可能会对性能造成负面影响,因为在授权检查过程中意外行为。对于大型部署,请考虑使用 admin 用户。
  • 对于非管理员用户,您必须将 Ansible Tower Inventory Reader 角色分配给您的 Satellite 服务器用户。有关管理用户、角色和权限过滤器的更多信息,请参阅管理 Red Hat Satellite 中的创建和管理角色https://docs.redhat.com/en/documentation/red_hat_satellite/6.17/html-single/administering_red_hat_satellite/index#Creating_and_Managing_Roles_admin
  • 您必须在同一网络或子网上托管 Satellite 服务器和 Ansible Automation Platform。

流程

  1. 在 Ansible Automation Platform Web UI 中,为您的 Satellite 创建凭证。有关创建凭证的更多信息,请参阅 Red Hat Ansible Automation Platform 文档中的 创建新凭证Red Hat Satellite 6 凭证类型

    Expand
    表 5.1. Satellite 凭证
    凭证类型Red Hat Satellite 6

    Satellite URL

    https://satellite.example.com

    用户名

    Satellite 用户与集成角色的用户名。

    密码

    Satellite 用户的密码。

  2. 将 Ansible Automation Platform 用户添加到新凭据。有关将用户添加到凭证的更多信息,请参阅 Red Hat Ansible Automation Platform 文档中的 向现有凭证添加新用户和作业模板
  3. 添加新清单。如需更多信息,请参阅 Red Hat Ansible Automation Platform 文档中的添加新清单https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/using_automation_execution/controller-inventories#proc-controller-adding-new-inventory

    在新清单中,将 Satellite 服务器添加为清单源,并指定以下清单源选项:

    Expand
    表 5.2. 清单源选项
    SourceRed Hat Satellite 6

    凭证

    为 Satellite 服务器创建的凭据。

    覆盖

    选择

    覆盖变量

    选择

    启动时更新

    选择

    缓存超时

    90

  4. 确保同步您添加的源。
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat