1.6. 同步 Ansible Collections
在 Satellite 上,您可以同步来自 Private Automation Hub、console.redhat.com 和其他 Satellite 实例的 Ansible Collections。同步后,Ansible Collections 将作为 Satellite Web UI 菜单中的新存储库类型出现在 Satellite 上。
Ansible Collections 存在于库环境中,且不支持生命周期管理。Pulp 3 的 Capsule 具有集合支持,如果与库环境关联,将同步集合存储库。您还可以使用 Export 功能进行 Satellite 同步。
流程
- 在 Satellite Web UI 中,导航到 Content > Products。
- 选择所需的产品名称。
- 在 Products 窗口中,选择要为其创建存储库的产品名称。
- 单击 Repositories 选项卡,然后单击 New Repository。
在 Name 字段中输入存储库的名称。
Label 字段会根据名称自动填充。
- 从 Type 列表中,选择 ansible collection。
在 Upstream URL 字段中,输入上游集合存储库的 URL。
URL 可以是任何 Galaxy 端点。例如:
https://console.redhat.com/api/automation-hub/。可选:在 Requirements.yml 字段中,您可以指定您要从端点同步的集合列表,以及它们的版本。
如果没有指定集合列表,则端点中的所有内容都会被同步。
--- collections: - name: my_namespace.my_collection version: 1.2.3有关更多信息,请参阅 Galaxy 用户指南中的 安装带有要求文件的多个集合。
身份验证。
要从 Private Automation Hub 同步 Satellite,请在 Auth Token 字段中输入您的令牌。
如需更多信息,请参阅 连接到 Hub 指南中的 Connect Private Automation Hub 。
要从
console.redhat.com同步 Satellite,请在 Auth Token 字段中输入您的令牌,然后在 Auth URL 字段中输入您的 SSO URL。如需更多信息,请参阅开始使用自动化中心。
- 要从 Satellite 同步 Satellite,请将两个身份验证字段留空。
- 点击 Save。
- 导航到 Ansible Collections 存储库。
- 在 Select Action 菜单中,选择 Sync Now。