Chapter 4. Populating Red Hat Satellite with Content
- If your Satellite server can access the Internet directly, see Section 4.1, “Connected Satellite”.
- If your Satellite server is isolated from the Internet, see Section 4.2, “Disconnected Satellite”.
4.1. Connected Satellite
4.1.1. Accessing Red Hat Content Providers
4.1.1.1. Creating a Subscription Manifest
Important
You must meet the following conditions before continuing with this task:
- A Customer Portal user name and password.
- Sufficient subscriptions to add to the manifest.
Procedure 4.1. To Create a Manifest for Satellite 6:
- Navigate to https://access.redhat.com and click SUBSCRIPTIONS on the main menu at the top of the page.
- Scroll down to the Red Hat Subscription Management section, and click Satellite under Subscription Management Applications.
- To create a manifest for a new system, click Register a Satellite. Select the Satellite version and Name that must match the name of the organization on your Satellite. Click .To add or modify subscriptions of an existing manifest, click the name of the system this manifest is associated to, and click Attach a subscription.
- For each subscription that you want to attach, select the check box for that subscription, and specify the quantity of subscriptions to attach.
- Click
Note
It can take several minutes for all the subscriptions to attach. Refresh the screen every few minutes until you receive confirmation that the subscriptions are attached. - After the subscriptions have been attached, click to generate an archive in .zip format containing the manifest for Red Hat Satellite.
4.1.1.2. Uploading a Subscription Manifest to Satellite
Procedure 4.2. To Upload a Subscription Manifest:
- Log in to the Satellite server and select the desired organization from the menu in the top left hand corner.
- Click → and then click at the upper right of the page.
- In the Subscription Manifest section, click Actions and under the Upload New Manifest subsection, click .
- Select the manifest file to upload, and then click Upload.
4.1.1.3. Enabling Red Hat Repositories
Procedure 4.3. To Enable Red Hat Repositories:
- On the main menu, click → and then click the tab for the type of content that you want to enable.
- Click the product name for which you want to add repositories. This expands the list of available repository sets.
- Click each repository set from which you want to select repositories, and select the check box for each required repository. The repository is automatically enabled. The content from this repository will be downloaded during the next synchronization, see Section 4.1.3, “Synchronizing Content”. After enabling a Red Hat repository, a product for this repository is automatically created.
Important
Ensure you enable the Satellite Tools repository. This repository provides the katello-agent and puppet-agent packages for clients registered to the Satellite Server.
- Red Hat Enterprise Linux 6 Server Kickstart x86_64 6Server Repository
- Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server Repository
- Red Hat Enterprise Linux 6 Server - Satellite Tools RPMs x86_64 Repository
4.1.2. Using Products
4.1.2.1. Creating a Product
Procedure 4.4. To Create a Product:
- Click → .
- Click .
- Specify the name of the new product in the Name field.
- Specify the label for the new product in the Label field.
- Select a GPG key from the GPG Key drop-down menu.
- Select a synchronization plan from the Sync Plan drop-down menu. You can also select the New Sync Plan link to create a new synchronization plan.
- Enter a description of the new product in the Description field.
- Click .
4.1.2.2. Adding Repositories to a Product
Procedure 4.5. To Add Repositories to a Product:
- Click → .
- Click the product to add a repository.
- Click .
- Click .
- Specify the name of the new repository in the Name field.
- Specify a label for the new repository in the Label field.
- Select the type of the repository from the Type drop-down menu.
- Specify the URL of the repository in the URL field.
- Choose whether to publish the repository via HTTP by selecting Publish via HTTP.
- Select a GPG key for the repository from the GPG Key drop-down menu.
- Click .
4.1.2.3. Using Bulk Actions for Products
Procedure 4.6. To Synchronize Multiple Products:
- Navigate to → .
- Select the check box for the products you want to work with.
- Click .
- Click the tab and then click .
Procedure 4.7. To Remove Multiple Products:
- Navigate to → .
- Select the check box for the products you want to work with.
- Click .
- Click and then click .
Procedure 4.8. To Update Synchronization Plans for Multiple Products:
- Navigate to → .
- Select the check box for the products you want to work with.
- Click .
- Click the Alter Sync Plans tab. Depending on the type of action you want to perform select from the following alternatives.
- To create a new synchronization plan, click . Specify the required details and click .
- To remove the synchronization plans from the selected products, click .
- To update the synchronization plans for the selected products, click .
4.1.2.4. Using Repository Discovery
Procedure 4.9. To Use Repository Discovery:
- Navigate to → .
- Click .
- Insert the URL where the repositories are located in the Yum Repo Discovery field.
- Click .A list of the repositories at the URL is displayed under Results.
- Click Discovered URLs to add the repositories to the product.
- Click .
- Choose whether to add the repositories to an existing product or create a new product.
- To add the repositories to an existing product:
- Select Existing Product.
- Select the required product from the drop-down menu.
- To create a new product to add the repositories to:
- Select New Product.
- Enter the Name and Label for the new product and select a GPG Key from the drop-down menu.
- Select Serve via HTTP to serve the repository via HTTP.
- Edit the Name and Label for the Selected URLs.
- Click .
4.1.2.5. Removing a Product
Procedure 4.10. To Remove a Product from Satellite:
- Navigate to → .
- Select the check box next to the products you want to remove.
- Click and then click .
- Click to confirm that you want to remove the products.
4.1.3. Synchronizing Content
- Data integrity between packages
- Updated packages, security fixes, and errata
4.1.3.1. Synchronization Status
Important
Procedure 4.11. Synchronize Products
- Navigate to → . Based on the subscriptions and repositories enabled, the list of product repositories available for synchronization is displayed.
- Click the arrow next to the product name to see available content.
- Select the content you want to synchronize.
- Click to starting synchronizing. The status of the synchronization process will appear in the Result column. If synchronization is successful, Sync complete will appear in the Result column. If synchronization failed, Error syncing will appear.
Note
4.1.3.2. Creating a Synchronization Plan
Procedure 4.12. To Create a Synchronization Plan:
- Navigate to → .
- Click to create a new synchronization plan.
- Specify the Name, Description, Interval and Start Date for the plan.
- Click .
Note
4.1.3.3. Applying a Synchronization Schedule
Procedure 4.13. To Create a Synchronization Schedule:
- Click → and select the synchronization plan you want to implement.
- Click → in the synchronization plan main page.
- Select the check box of the product to associate with the synchronization plan.
- Click .
4.1.4. Using a Content ISO for Initial Synchronization
katello-disconnected (see Section 4.2.2, “Using the Synchronization Host”).
Example 4.1. Synchronizing a Repository from a Local Source
- Download the content ISO for Red Hat Enterprise Linux 6 from the Red Hat Customer Portal (see Section 4.2.1, “Using Content ISO” for detailed instructions). Copy the content ISO to your Satellite server, for example to the
/root/isos/directory. - On the Satellite server, create a mount point, mount the ISO and copy its content to a writable directory that Satellite can access, in this example
/mnt/rhel6/:#
mkdir /mnt/iso#mount -o loop /root/isos/sat-6-isos--rhel-6-server-x86_64.iso /mnt/iso#cp -ruv /mnt/iso/ /mnt/rhel6/Then unmount the ISO and remove the mount point:#
umount /mnt/iso#rmdir /mnt/iso - Set the correct SELinux context and ownership for the content directory:
#
chcon -R --type=httpd_sys_rw_content_t /mnt/rhel6/#chown -R apache:apache /mnt/rhel6/ - Create or edit the
/etc/pulp/content/sources/conf.d/local.conffile. Insert the following text to the file:[rhel-6-server] enabled: 1 priority: 0 expires: 3d name: Red Hat Enterprise Linux 6 Server type: yum base_url: file:///mnt/rhel6/content/dist/rhel/server/6/6Server/x86_64/os/
Thebase_urlpath may differ in your content ISO. The directory specified inbase_urlmust contain therepodatadirectory, otherwise the synchronization will fail. To synchronize multiple repositories, create a separate entry for each of them in the configuration file/etc/pulp/content/sources/conf.d/local.conf. - In the Satellite web UI, navigate to → and select the repository to be enabled, in this example Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server.Under → select the repository to be synchronized and click .Note that there is no indication in the Satellite web UI of which source is being used. In case of problems with a local source, Satellite pulls content through the network. To monitor the process, run the following command in the console on Satellite (limited to Red Hat Enterprise Linux 7 base systems):
#
journalctl -f -l SYSLOG_IDENTIFIER=pulp | grep -v worker[\-,\.]heartbeatThe above command displays interactive logs. First, the Satellite server connects to the Red Hat Customer Portal to download and process repository metadata. Then, the local repository is loaded. In case of any errors, cancel the synchronization in the Satellite web UI and verify your configuration. - After successful synchronization you can detach the local source by removing its entry from
/etc/pulp/content/sources/conf.d/local.conf.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.