8.6. 複合コンテンツビューの作成
以下の手順を使用して複合コンテンツビューを作成します。Satellite Web UI の代わりに CLI を使用する場合は、CLI 手順 を参照してください。
手順
- Satellite Web UI で Content > Content Views に移動して、Create content view をクリックします。
- Create content view ウィンドウで、Name フィールドにビューの名前を入力します。Red Hat Satellite では、入力した名前から ラベル フィールドに自動的に入力されます。
- オプション: Description フィールドに、ビューの説明を入力します。
- Type タブで、Composite content view を選択します。
- オプション: コンテンツビューが再公開されると、複合コンテンツビューの新規バージョンを自動的に公開するには、Auto publish チェックボックスを選択します。
- Create content view をクリックします。
- コンテンツビュー タブで、複合コンテンツビューに追加するコンテンツビューを選択し、コンテンツビューの追加 をクリックします。
- Add content views ウィンドウで、各コンテンツビューのバージョンを選択します。
- オプション: コンテンツビューを最新バージョンに更新する場合は、Always update to latest version のチェックボックスを選択します。
- Add をクリックしてから、Publish new version をクリックします。
- オプション: 説明 フィールドに、コンテンツビューの説明を入力します。
- Publish ウィンドウで Promote スイッチを設定し、ライフサイクル環境を選択します。
- Next をクリックし、Finish をクリックします。
CLI 手順
複合コンテンツビューを作成する前に、既存のコンテンツビューのバージョン ID を一覧表示します。
# hammer content-view version list \ --organization "My_Organization"
新しい複合コンテンツビューを作成します。
--auto-publish
オプションをyes
に設定すると、そのコンテンツビューを含むコンテンツビューが再公開されると、複合コンテンツビューは自動的に再公開されます。# hammer content-view create \ --composite \ --auto-publish yes \ --name "Example_Composite_Content_View" \ --description "Example Composite Content View" \ --organization "My_Organization"
コンポーネントのコンテンツビューを複合コンテンツビューに追加します。コンテンツビューのバージョン ID を追加して、
--latest
オプションを使用する必要があります。複合コンテンツビューに、複数のコンポーネントのコンテンツビューを追加するには、追加するすべてのコンテンツビューに対してこの手順を繰り返します。# hammer content-view component add \ --component-content-view-id Content_View_Version_ID \ --latest \ --composite-content-view "Example_Composite_Content_View"
複合コンテンツビューを公開します。
# hammer content-view publish \ --name "Example_Composite_Content_View" \ --description "Initial version of Composite Content View" \ --organization "My_Organization"
すべての環境で複合コンテンツビューをプロモートします。
# 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"