7.3. 追加の SCAP コンテンツのアップロード
追加の SCAP コンテンツ (自分で作成したコンテンツ、または他の場所で取得したコンテンツ) を Satellite Server にアップロードできます。Red Hat は、Red Hat から取得した SCAP コンテンツのサポートのみを提供することに注意してください。Satellite Web UI の代わりに CLI を使用するには、CLI 手順 を参照してください。
前提条件
-
ユーザーアカウントに
create_scap_contents
権限を持つロールが割り当てられている。 - SCAP データストリームファイルを取得している。
手順
- Satellite Web UI で、Hosts > Compliance > SCAP contents に移動します。
- Upload New SCAP Content をクリックします。
-
Title テキストボックスにタイトルを入力します (
My SCAP Content
など)。 - Scap File で、Choose file をクリックし、SCAP データストリームファイルが含まれる場所に移動して、Open をクリックします。
- Locations タブで場所を選択します。
- Organizations タブで組織を選択します。
- Submit をクリックします。
SCAP コンテンツファイルが正常にロードされると、Successfully created My SCAP Content
のようなメッセージが表示されます。
CLI 手順
-
SCAP データストリームファイルを Satellite Server 上のディレクトリー (
/usr/share/xml/scap/my_content/
など) に配置します。 Satellite Server で次の Hammer コマンドを実行します。
hammer scap-content bulk-upload --type directory \ --directory /usr/share/xml/scap/my_content/ \ --location "My_Location" \ --organization "My_Organization"
# hammer scap-content bulk-upload --type directory \ --directory /usr/share/xml/scap/my_content/ \ --location "My_Location" \ --organization "My_Organization"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
検証
- 利用可能な SCAP コンテンツをリストします。SCAP コンテンツのリストに新しいタイトルが含まれています。