4.3. 配置 RHUI Alternate 内容源


前提条件

流程

  1. 在 Satellite Web UI 中,导航到 Content > Alternate Content Sources。
  2. 单击 Add Source,并将 Source 类型设置为 RHUI。
  3. 使用 Satellite Web UI 中提供的命令生成 RHUI 证书。确保传递所需存储库的 repo 标签。
  4. 在 Name 字段中输入备用内容源的名称。
  5. 可选:在 Description 字段中,为 ACS 提供描述。
  6. 选择要同步备用内容源的 Capsule。
  7. 可选: 如果您希望 ACS 使用 Capsule 的 HTTP 代理,请选择 Use HTTP proxy。
  8. 输入 Red Hat Update Infrastructure CDS 节点的 Base URL。
  9. 输入以逗号分隔的 Subpath 列表。
  10. 如果需要 , 请提供内容凭据。
  11. 如果需要 SSL 验证,请启用 Verify SSL 并选择 SSL CA 证书。
  12. 查看详情并点 Add。
  13. 导航到 Content > Alternate Content Sources,点新创建的备用内容源旁的垂直 ellipsis,然后选择 Refresh。

CLI 过程

  1. 在 Satellite 服务器中输入以下命令:

    # hammer alternate-content-source create \
    --name "My_ACS_Name" \
    --alternate-content-source-type rhui \
    --base-url "https://rhui-cds-node/pulp/content" \
    --subpaths path/to/repo/1/,path/to/repo/2/ \
    --ssl-client-cert-id My_SSL_Client_Certificate_ID \
    --ssl-client-key-id My_SSL_Client_Key_ID \
    --smart-proxy-ids MyCapsule_ID_ \
    --verify-ssl 1
  2. 检查是否列出了新创建的备用内容源:

    # hammer alternate-content-source list
  3. 刷新备用内容源:

    # hammer alternate-content-source refresh --id My_Alternate_Content_Source_ID
  4. 添加要同步备用内容源的胶囊:

    # hammer alternate-content-source update \
    --id My_Alternate_Content_Source_ID \
    --smart-proxy-ids Capsule_ID
  5. 刷新备用内容源:

    # hammer alternate-content-source refresh --id My_Alternate_Content_Source_ID
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

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

让开源更具包容性

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

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部