2.10. 更新执行环境镜像位置


更新您的执行环境镜像位置,以使用托管在您的私有自动化中心上的镜像。您可以使用私有 registry 中的执行环境而不是默认的 registry。

流程

  1. 登录到 Ansible Automation Platform。
  2. 为您的私有自动化中心创建容器 registry 凭证:

    1. 在导航面板中,选择 Automation Execution Infrastructure Credentials
    2. Create credential
    3. 输入您的凭证信息:

      • Name :输入名称,如 Private Hub Registry
      • 凭证类型 : 选择 Container Registry
      • 身份验证 URL :输入私有自动化中心的 URL,如 https://automationhub.example.org
      • 用户名 :输入您的私有自动化中心用户名。
      • Password or Token: 输入您的私有自动化中心密码或身份验证令牌。
      • 验证 SSL :如果您的私有自动化中心使用自签名证书,请清除此复选框。
    4. Create credential
  3. 更新默认执行环境以使用私有自动化中心中的镜像:

    1. 在导航面板中,选择 Automation Execution Infrastructure Execution Environments
    2. 找到 Default 执行环境,点 Edit 编辑该文件。
    3. Image 字段中,更新镜像路径以指向您的私有自动化中心,如 automationhub.example.org/ee-supported-rhel9:latest
    4. Registry Credential 字段中,选择您创建的容器 registry 凭证。
    5. 单击 Save execution environment
    6. 找到 Minimal 执行环境,点 Edit 来编辑它。
    7. Image 字段中,更新镜像路径以指向您的私有自动化中心,如 automationhub.example.org/ee-minimal-rhel9:latest
    8. Registry Credential 字段中,选择您创建的容器 registry 凭证。
    9. 单击 Save execution environment
    10. 对您要更新的其它执行环境重复这些步骤,以使用您的私有自动化中心中的镜像。

验证

  1. 在导航面板中,选择 Automation Execution Infrastructure Execution Environments
  2. 验证您的私有自动化中心执行环境出现在列表中。
  3. 可选:创建一个使用新执行环境之一的测试作业模板,并运行它来确认自动化控制器可以成功拉取并使用您的私有自动化中心中的镜像。

其他资源

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

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

让开源更具包容性

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

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部