8.7. 创建复合内容视图


流程

要创建 Composite Content View,请完成以下步骤:

  1. 在 Satellite Web UI 中,进入到 Content > Content Views 并点 Create New View
  2. Name 字段中输入视图的名称。Red Hat Satellite 6 从您输入的名称自动完成 Label 字段。
  3. Description 字段中,输入视图的描述。
  4. 选中 Composite View? 复选框,以创建 Composite Content View。
  5. 可选: 如果您希望在内容视图重新发布时自动重新发布 Composite Content View,选择 Auto Publish 复选框。
  6. Save
  7. Add Content Views 区域中,选择您要添加到 Composite Content View 中的 Content Views,然后单击 Add Content Views
  8. 单击 Publish New Version 以发布 Composite Content View。在 Description 字段中,输入描述并点 Save
  9. 单击 Promote,再选择要提升 Composite Content View 的生命周期环境,输入描述,然后单击 Promote Version

对于 CLI 用户

  1. 在创建 Composite Content Views 前,列出现有内容视图的版本 ID:

    # hammer content-view version list \
    --organization "My_Organization"
    Copy to Clipboard Toggle word wrap
  2. 创建新的 Composite 内容视图。当将 --auto-publish 选项设置为 yes 时,当内容视图被重新发布时,Composite Content View 会自动重新发布:

    # hammer content-view create \
    --composite \
    --auto-publish yes \
    --name "Example_Composite_Content_View" \
    --description "Example Composite Content View" \
    --organization "My_Organization"
    Copy to Clipboard Toggle word wrap
  3. 向 Composite 内容视图添加组件内容视图。您必须包含内容视图版本 ID,并使用 --latest 选项。要将多个组件内容视图包含到 Composite Content View 中,请对您要包含的每个内容视图重复此步骤:

    # hammer content-view component add \
    --component-content-view-id Content_View_Version_ID \
    --latest \
    --composite-content-view "Example_Composite_Content_View"
    Copy to Clipboard Toggle word wrap
  4. 发布 Composite 内容视图:

    # hammer content-view publish \
    --name "Example_Composite_Content_View" \
    --description "Initial version of Composite Content View" \
    --organization "My_Organization"
    Copy to Clipboard Toggle word wrap
  5. 在所有环境中提升 Composite 内容视图:

    # hammer content-view version promote \
    --content-view "Example_Composite_Content_View" \
    --version 1 \
    --to-lifecycle-environment "Development" \
    --organization "My_Organization"
    # hammer content-view version promote \
    --content-view "Example_Composite_Content_View" \
    --version 1 \
    --to-lifecycle-environment "Testing" \
    --organization "My_Organization"
    # hammer content-view version promote \
    --content-view "Example_Composite_Content_View" \
    --version 1 \
    --to-lifecycle-environment "Production" \
    --organization "My_Organization"
    Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat