8.7. Creating a Composite Content View
Procedure
To create a Composite Content View, complete the following steps:
- In the Satellite web UI, navigate to Content > Content Views and click Create New View.
- In the Name field, enter a name for the view. Red Hat Satellite 6 automatically completes the Label field from the name you enter.
- In the Description field, enter a description of the view.
- Select the Composite View? check box to create a Composite Content View.
- Optional: select the Auto Publish check box if you want the Composite Content View to be republished automatically when a Content View is republished.
- Click Save.
- In the Add Content Views area, select the Content Views that you want to add to the Composite Content View, and then click Add Content Views.
- Click Publish New Version to publish the Composite Content View. In the Description field, enter a description and click Save.
- Click Promote and select the lifecycle environments to promote the Composite Content View to, enter a description, and then click Promote Version.
For CLI Users
Before you create the Composite Content Views, list the version IDs for your existing Content Views:
# hammer content-view version list \ --organization "My_Organization"
Create a new Composite Content View. When the
--auto-publish
option is set toyes
, the Composite Content View is automatically republished when a Content View it includes is republished:# hammer content-view create \ --composite \ --auto-publish yes \ --name "Example_Composite_Content_View" \ --description "Example Composite Content View" \ --organization "My_Organization"
Add a component Content View to the Composite Content View. You must include the Content View Version ID and use the
--latest
option. To include multiple component Content Views to the Composite Content View, repeat this step for every Content View you want to include:# hammer content-view component add \ --component-content-view-id Content_View_Version_ID \ --latest \ --composite-content-view "Example_Composite_Content_View"
Publish the Composite Content View:
# hammer content-view publish \ --name "Example_Composite_Content_View" \ --description "Initial version of Composite Content View" \ --organization "My_Organization"
Promote the Composite Content View across all environments:
# 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"