As a user of Satellite, you'd like to speed the initial sync of repositories content provided via removable media or near provider.
This draft is focused on usage of pulp-cli.
Alternate Content Sources can help speed up populating of new repositories. If you have content stored locally or geographically near you, it allows you its' faster transfer. Alternate Content Sources will allow you to use the content you have around if it matches the remote one.
In new version of Satellite/Pulp alternate content sources works as special remotes.
To use this option you (or your's RHUI administrator) will need to generate certificates needed to authenticate against RHUI.
On RHUA instance run
to view your repos and then
to get certificates needed.
On the box with Pulp instance, assuming to have pulp-cli installed and configured.
Create remote with certificates needed. Please note that pulp remote must use policy "on_demand".
With this remote create ACS and refresh it to update library of alternate content source.
Next time you will sync a repo with any matching content that is in refreshed ACS, it will be used as source to download.
This use case shows how to use ACS when you have you data locally.
Lets say you got backup copy of two repositories (e.g. baseos and appstream) on mounted disk.
Check your pulp settings if ALLOWED_IMPORT_PATHS
contains (base) path to your local files.
In our case ["/mnt/backup"]
must be present.
Create a remote only with a base path to your repositories.
When creating ACS specify paths under your base path to your repositories
As in example above, next time you'll sync both alternate repositories will be used as a source of content.