Skip to content

Commit b257eb3

Browse files
committed
Make seed Pulp container optional
1 parent da4fed2 commit b257eb3

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

etc/kayobe/seed.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,13 @@
8686
###############################################################################
8787
# Seed node additional containers configuration
8888

89-
# Dict of container images to start
90-
# Example:
91-
# seed_containers:
92-
# squid:
93-
# name: "squid"
94-
# image: "stackhpc/squid:3.5.20-1"
95-
# pre: "{{ kayobe_env_config_path }}/containers/squid/pre.yml"
96-
# post: "{{ kayobe_env_config_path }}/containers/squid/post.yml"
97-
#
98-
seed_containers:
89+
# Seed container running a "Pulp in one" service.
90+
# https://pulpproject.org/pulp-in-one-container/
91+
# This can be used as a package mirror, and container image registry.
92+
seed_pulp_container_enabled: true
93+
94+
seed_pulp_container:
9995
pulp:
100-
name: pulp
10196
image: pulp/pulp
10297
pre: "{{ kayobe_config_path }}/containers/pulp/pre.yml"
10398
post: "{{ kayobe_config_path }}/containers/pulp/post.yml"
@@ -110,6 +105,18 @@ seed_containers:
110105
- pulp_containers:/var/lib/containers
111106
restart_policy: unless-stopped
112107

108+
# Dict of container images to start
109+
# Example:
110+
# seed_containers:
111+
# squid:
112+
# name: "squid"
113+
# image: "stackhpc/squid:3.5.20-1"
114+
# pre: "{{ kayobe_env_config_path }}/containers/squid/pre.yml"
115+
# post: "{{ kayobe_env_config_path }}/containers/squid/post.yml"
116+
#
117+
seed_containers: >-
118+
{{ {} | combine(seed_pulp_container if seed_pulp_container_enabled | bool else {}) }}
119+
113120
###############################################################################
114121
# Seed node firewalld configuration.
115122

0 commit comments

Comments
 (0)