You can export a version of a Content View to a syncable format that you can use to create your custom CDN. After you have exported the Content View, you can do either of the following:
-
Synchronize the content from your custom CDN over HTTP/HTTPS.
-
Import the content using
hammer content-import
. Note that this requires both the Export and Import servers to run {Project} {ProjectVersion}.
-
Ensure that you set the download policy to Immediate for all repositories within the Content View you export. For more information, see [Download_Policies_Overview_{context}].
-
Ensure that you synchronize products you export to the required date.
-
Ensure that the user exporting the content has the
Content Exporter
role.
-
List versions of the Content View that are available for export:
# hammer content-view version list \ --content-view="My_Content_View" \ --organization="My_Organization"
-
Get the version number of desired version. The following example targets version
1.0
for export:# hammer content-export complete version \ --content-view="Content_View_Name" \ --version=1.0 \ --organization="My_Organization" \ --format=syncable
-
Optional: Verify that the exported content is located in the export directory:
# ls -lh /var/lib/pulp/exports/My_Organization/My_Content_View_Name/1.0/2021-02-25T18-59-26-00-00/