Skip to content

Commit

Permalink
Merge pull request #1076 from stackhpc/pulp-container-extra
Browse files Browse the repository at this point in the history
Support synchronising custom container images
  • Loading branch information
priteau authored May 30, 2024
2 parents 6c46bce + 4b0dc54 commit 2884d3c
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
27 changes: 27 additions & 0 deletions doc/source/configuration/release-train.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,33 @@ By default, HashiCorp images (Consul and Vault) are not synced from Docker Hub
to the local Pulp. To sync these images, set ``stackhpc_sync_hashicorp_images``
to ``true``.

Custom container images
-----------------------

A custom list of container images can be synced to the local Pulp using the
``stackhpc_pulp_repository_container_repos_extra`` and
``stackhpc_pulp_distribution_container_extra`` variables.

.. code-block:: yaml
# List of extra container image repositories.
stackhpc_pulp_repository_container_repos_extra:
- name: "certbot/certbot"
url: "https://registry-1.docker.io"
policy: on_demand
proxy_url: "{{ pulp_proxy_url }}"
state: present
include_tags: "nightly"
required: True
# List of extra container image distributions.
stackhpc_pulp_distribution_container_extra:
- name: certbot
repository: certbot/certbot
base_path: certbot/certbot
state: present
required: True
Usage
=====

Expand Down
12 changes: 10 additions & 2 deletions etc/kayobe/pulp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -821,14 +821,22 @@ stackhpc_pulp_distribution_container_hashicorp:
state: present
required: "{{ stackhpc_sync_hashicorp_images | bool }}"

# List of extra container image repositories.
stackhpc_pulp_repository_container_repos_extra: []

# List of extra container image distributions.
stackhpc_pulp_distribution_container_extra: []

# List of container image repositories.
stackhpc_pulp_repository_container_repos: >-
{{ (stackhpc_pulp_repository_container_repos_kolla +
stackhpc_pulp_repository_container_repos_ceph +
stackhpc_pulp_repository_container_repos_hashicorp) | selectattr('required') }}
stackhpc_pulp_repository_container_repos_hashicorp +
stackhpc_pulp_repository_container_repos_extra) | selectattr('required') }}
# List of container image distributions.
stackhpc_pulp_distribution_container: >-
{{ (stackhpc_pulp_distribution_container_kolla +
stackhpc_pulp_distribution_container_ceph +
stackhpc_pulp_distribution_container_hashicorp) | selectattr('required') }}
stackhpc_pulp_distribution_container_hashicorp +
stackhpc_pulp_distribution_container_extra) | selectattr('required') }}
6 changes: 6 additions & 0 deletions releasenotes/notes/pulp-container-extra-9379806192900d22.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
features:
- |
Allows to synchronise a custom list of containers to Pulp using the
``stackhpc_pulp_repository_container_repos_extra`` and
``stackhpc_pulp_distribution_container_extra`` variables.

0 comments on commit 2884d3c

Please sign in to comment.