第13章 Managing ISO Images

You can use Red Hat Satellite 6 to store ISO images, either from Red Hat’s Content Delivery Network or other sources. You can also upload other files, such as virtual machine images, and publish them in repositories.

13.1. Importing ISO Images from Red Hat

The Red Hat Content Delivery Network provides ISO images for certain products. The procedure for importing this content is similar to the procedure for enabling repositories for RPM content.

Procedure

To import Red Hat ISO images, complete the following steps:

  1. In the Satellite web UI, navigate to Content > Red Hat Repositories.
  2. In the Search field, enter an image name, for example, Red Hat Enterprise Linux 7 Server (ISOs).
  3. In the Available Repositories window, expand Red Hat Enterprise Linux 7 Server (ISOs).
  4. For the x86_64 7.2 entry, click the Enable icon to enable the repositories for the image.
  5. Navigate to Content > Products and click Red Hat Enterprise Linux Server.
  6. Click the Repositories tab of the Red Hat Enterprise Linux Server window, and click Red Hat Enterprise Linux 7 Server ISOs x86_64 7.2.
  7. In the upper right of the Red Hat Enterprise Linux 7 Server ISOs x86_64 7.2 window, click Select Action and select Sync Now.

To view the Synchronization Status

  • In the web UI, navigate to Content > Sync Status and expand Red Hat Enterprise Linux Server.

For CLI Users

  1. Locate the Red Hat Enterprise Linux Server product for file repositories:

    # hammer repository-set list \
    --product "Red Hat Enterprise Linux Server" \
    --organization "My_Organization" | grep "file"
  2. Enable the file repository for Red Hat Enterprise Linux 7.2 Server ISO:

    # hammer repository-set enable \
    --product "Red Hat Enterprise Linux Server" \
    --name "Red Hat Enterprise Linux 7 Server (ISOs)" \
    --releasever 7.2 \
    --basearch x86_64 \
    --organization "My_Organization"
  3. Locate and synchronize the repository in the product:

    # hammer repository list \
    --product "Red Hat Enterprise Linux Server" \
    --organization "My_Organization"
    # hammer repository synchronize \
    --name "Red Hat Enterprise Linux 7 Server ISOs x86_64 7.2" \
    --product "Red Hat Enterprise Linux Server" \
    --organization "My_Organization"

13.2. Importing Individual ISO Images and Files

以下の手順を使用して、ISO コンテンツとその他のファイルを Satellite Server に手動でインポートします。カスタムファイルをインポートするには、Web UI または Hammer CLI を使用して、以下の手順を実行してください。ただし、アップロードするファイルのサイズが 15 MB よりも大きい場合は、Hammer CLI を使用してリポジトリーにアップロードする必要があります。

  1. Create a custom product.
  2. Add a repository for files to the product.
  3. Upload a file to the repository.

Procedure

To import custom ISO images, complete the following steps:

  1. In the Satellite web UI, navigate to Content > Products, and in the Products window, click New Product.
  2. In the Name field, enter a name to identify the product. This name populates the Label field.
  3. In the GPG Key field, enter a GPG Key for the product.
  4. From the Sync Plan list, select a synchronization plan for the product.
  5. 説明フィールドには、製品の説明を入力します。
  6. 保存をクリックします。
  7. In the Products window, click the new product and then click Create Repository.
  8. In the Name field, enter a name for the repository. This automatically populates the Label field.
  9. From the Type list, select file.
  10. In the Upstream URL field, enter the URL of the registry to use as a source. Add a corresponding user name and password in the Upstream Username and Upstream Password fields.
  11. 保存をクリックします。
  12. Click the new repository.
  13. Navigate to the Upload File and click Browse.
  14. Select the .iso file and click Upload.

For CLI Users

  1. Create the custom product:

    # hammer product create \
    --name "My_ISOs" \
    --sync-plan "Example Plan" \
    --description "My_Product" \
    --organization "My_Organization"
  2. Create the repository:

    # hammer repository create \
    --name "My_ISOs" \
    --content-type "file" \
    --product "My_Product" \
    --organization "My_Organization"
  3. Upload the ISO file to the repository:

    # hammer repository upload-content \
    --path ~/bootdisk.iso \
    --name "My_ISOs" \
    --organization "My_Organization"