12.4. 为 Red Hat Satellite Capsule Server 添加生命周期环境(Lifecycle Environment)


如果新创建的 Red Hat Satellite Capsule Server 启用了内容节点功能,则需要在 Satellite Capsule Server 中为 Satellite Capsule Server 添加一个新环境。为 Red Hat Satellite Capsule Server 添加环境将允许 Satellite Capsule Server 从 Satellite Server 中同步内容,并为主机系统提供内容。

重要

Satellite Capsule Server 是通过 Satellite Server 的命令行界面(CLI)进行配置的。在 Satellite Server 中执行 hammer 命令。
为您的 Satellite Capsule Server 添加环境:
  1. 以 root 的身份登录 Satellite Server CLI。
  2. 从列表中选择 Red Hat Satellite Capsule Server,并记录其 id
    # hammer capsule list
    
    Copy to Clipboard Toggle word wrap
    使用以下命令可以查看 Satellite Capsule Server 的详情:
    # hammer capsule info --id capsule_id_number
    
    Copy to Clipboard Toggle word wrap
  3. 确认适用于 Red Hat Capsule Server 的生命周期环境列表,并记录 environment id
    # hammer capsule content available-lifecycle-environments --id capsule_id_number
    
    Copy to Clipboard Toggle word wrap
    其中:
    • available-lifecycle-environments 是可适用于 Satellite Capsule 的生命周期环境,但目前还没有添加到 Satellite Capsule。
  4. 为 Satellite Capsule Server 添加生命周期环境:
    # hammer capsule content add-lifecycle-environment --id capsule_id_number --lifecycle-environment-id environment_id_number
    
    Copy to Clipboard Toggle word wrap
    其中:
    • --id 是 Satellite Capsule Server 的 ID。
    • --lifecycle-environment-id 是生命周期环境的 ID。
    重复以上步骤将所需要的生命周期环境添加到 Capsule Server。
  5. 从 Satellite Server 的环境中将内容同步到 Satellite Capsule Server:
    # hammer capsule content synchronize --id capsule_id_number
    
    Copy to Clipboard Toggle word wrap
    当一个 Satellite Capsule Server 有不同的生命周期环境时,只需要同步一个生命周期。您可以使用环境的 ID 指定环境:
    # hammer capsule content synchronize --id 1 --environment-id 1
    
    Copy to Clipboard Toggle word wrap
结果:

所选环境可以使用相关 Satellite Capsule Server 中的存储库所提供的软件包。

22921%2C+User+Guide-6.008-10-2014+13%3A34%3A52Red+Hat+Satellite+6Docs+User+Guide报告 bug
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat