Integrating CIQ Repositories with Red Hat Satellite¶
Overview¶
Red Hat Satellite is a content management and provisioning solution for managing systems at scale. This guide explains how to integrate CIQ repositories with your Satellite infrastructure.
Prerequisites¶
- A functioning Red Hat Satellite 6.x installation
- Administrator access to your Satellite instance
- Your username and access token from https://portal.ciq.com/token
- Active licenses for the CIQ products you want to integrate
Finding Repository Information¶
- Log in to https://portal.ciq.com
- Navigate to My Products and select a product
- Select the repository you want to add to Satellite
- Look for the Satellite Config option in the repository details
Adding CIQ Repositories to Satellite¶
1. Create a Custom Product¶
- Navigate to Content > Products in the Satellite web UI
- Click Create Product
- Enter product details:
- Name: e.g., "CIQ Rocky Linux" or "CIQ Products"
- Description: Optional
- Click Save
Product Organization
Consider creating separate products for different CIQ offerings (e.g., "CIQ Rocky Linux", "CIQ Bridge") for better organization.
2. Create a Repository¶
- Navigate to the product you just created
- Click Create Repository
- Enter repository details:
- Name: Descriptive name (e.g., "Rocky Linux 9 BaseOS x86_64")
- Type: yum
- URL: The base URL from the Satellite Config in the Portal
- Download Policy: Choose based on your needs:
- Immediate: Downloads all content during sync. Best for smaller repos or when you need everything available right away.
- On Demand: Downloads content only when clients request it. Best for large repos or limited storage.
- Background: Metadata immediately, content syncs in background. A middle ground.
- Verify SSL: Keep enabled (recommended)
- Username: Your CIQ Portal username
- Password: Your CIQ Portal access token
- Click Save
Credential Security
Your CIQ Portal access token is stored in Satellite. Ensure proper RBAC controls are in place.
3. Sync the Repository¶
- Navigate to the repository you created
- Click Sync Now
- Monitor sync progress in the Sync Status section
First Sync
Large repositories may take several hours for the initial sync. Subsequent syncs only transfer changes.
4. Add to Content View¶
- Navigate to Content > Content Views
- Create a new Content View or select an existing one
- Go to Yum Content > Repositories
- Add the CIQ repository
- Click Publish New Version
5. Promote to Environment¶
- In the Content View, click Versions
- Click Promote next to the new version
- Select the lifecycle environment(s) (e.g., Development, Test, Production)
- Click Promote
Scheduling Synchronization¶
- Navigate to Content > Sync Plans
- Click Create Sync Plan
- Configure:
- Name: e.g., "Daily CIQ Repository Sync"
- Interval: Daily, Weekly, or Custom Cron
- Start Date/Time: Set to off-peak hours
- Click Save
- Go to Products tab and add your CIQ product
Registering Hosts¶
Register hosts to use the synced repositories:
subscription-manager register \
--org="your_organization" \
--activationkey="your_activation_key" \
--serverurl=https://your-satellite.example.com
Troubleshooting¶
Authentication Errors¶
Problem: Repository sync fails with 401 or 403 errors.
Solutions:
- Verify credentials in the repository configuration
- Check that the token hasn't been regenerated
- Ensure your organization has an active license for the product
- Test credentials:
curl -u 'YOUR_USERNAME:YOUR_TOKEN' https://depot.ciq.com/path/to/repo/repodata/repomd.xml
Repository Not Appearing on Hosts¶
Problem: Registered hosts can't access the repository.
Solutions:
- Verify the Content View is published and promoted
- Check the activation key includes the product subscription
- On the host, check:
subscription-manager repos --list dnf repolist
Slow Sync Performance¶
Problem: Repository syncs are very slow.
Solutions:
- Consider using "On Demand" download policy for large repositories
- Verify Satellite server has adequate resources
- Check network connectivity between Satellite and depot.ciq.com
See Also¶
- Accessing Content: Overview of access methods
- Rsync Mirroring: Alternative mirroring method
- Reposync Mirroring: DNF-based mirroring