Skip to content
Snippets Groups Projects
Commit eb9b799f authored by Mark Goddard's avatar Mark Goddard
Browse files

Allow kolla build customisations to be added

parent 8fb2a535
No related branches found
No related tags found
No related merge requests found
...@@ -136,6 +136,14 @@ controller_container_image_sets: ...@@ -136,6 +136,14 @@ controller_container_image_sets:
# Dict mapping Jinja2 block names in kolla's Docker images to their contents. # Dict mapping Jinja2 block names in kolla's Docker images to their contents.
kolla_build_blocks: {} kolla_build_blocks: {}
# Dict mapping image customization variable names to their values.
# Each variable takes the form:
# <image name>_<customization>_<operation>
# Hyphens in the image name are replaced with underscores. The customization is
# most commonly packages. The operation should be one of override, append or
# remove. The value should be a list.
kolla_build_customizations: {}
############################################################################### ###############################################################################
# Kolla-ansible configuration. # Kolla-ansible configuration.
......
...@@ -26,3 +26,11 @@ kolla_sources: {} ...@@ -26,3 +26,11 @@ kolla_sources: {}
# Dict mapping Jinja2 block names in kolla's Docker images to their contents. # Dict mapping Jinja2 block names in kolla's Docker images to their contents.
kolla_build_blocks: {} kolla_build_blocks: {}
# Dict mapping image customization variable names to their values.
# Each variable takes the form:
# <image name>_<customization>_<operation>
# Hyphens in the image name are replaced with underscores. The customization is
# most commonly packages. The operation should be one of override, append or
# remove. The value should be a list.
kolla_build_customizations: {}
...@@ -10,3 +10,8 @@ ...@@ -10,3 +10,8 @@
{{ '{% endblock %}' }} {{ '{% endblock %}' }}
{% endfor %} {% endfor %}
{% for var_name, var_value in kolla_build_customizations.items() %}
{{ '{% set ' ~ var_name ~ ' = ' ~ var_value | to_json ~ ' %}' }}
{% endfor %}
...@@ -55,6 +55,14 @@ ...@@ -55,6 +55,14 @@
# Dict mapping Jinja2 block names in kolla's Docker images to their contents. # Dict mapping Jinja2 block names in kolla's Docker images to their contents.
#kolla_build_blocks: #kolla_build_blocks:
# Dict mapping image customization variable names to their values.
# Each variable takes the form:
# <image name>_<customization>_<operation>
# Hyphens in the image name are replaced with underscores. The customization is
# most commonly packages. The operation should be one of override, append or
# remove. The value should be a list.
#kolla_build_customizations:
############################################################################### ###############################################################################
# Kolla-ansible configuration. # Kolla-ansible configuration.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment