Content Templates enable users to set a baseline of repository snapshots that help them control patching in predictable ways. In the future, users will be able to build images with a Content Template.
Content Templates are entities that can include snapshots from different Red Hat and custom repositories.
The content included in Content Templates is served at different distribution paths in pulp for Red Hat and custom repositories since they are in different domains.
For Red Hat content, the distribution path would be /pulp/content/<red_hat_domain>/templates/<template_uuid>/
. For example, for this Red Hat repository,
the content would be at /pulp/content/<red_hat_domain>/templates/<template_uuid>/content/dist/layered/rhel8/x86_64/ansible/2/os/
.
For custom content, the distribution path would be /pulp/content/<custom_domain>/templates/<template_uuid>/<repository_uuid>/
.
After a repository has been snapshotted, a Content Template can be created with that snapshot.
On Content Template creation and update:
On Content Template deletion:
The task started on Content Template create, update, and delete modifies any entities in Candlepin needed to represent the Content Template. These entities are:
On Content Template creation:
On Content Template update, any new content is created and either promoted to or demoted from the environment.
On Content Template deletion, the environment is deleted.
Content Templates can be assigned to systems to configure those systems to pull updates from the snapshots instead of the upstream repositories. Systems are associated with Candlepin environments within Candlepin, which is done with the Patch application. This will eventually help build “historical” images containing past content and software versions that are known to be compatible with customers’ workflows.
To test this out on a RHEL client, see these steps.