Allow kolla build customisations to be added

This commit is contained in:
Mark Goddard 2017-05-09 14:10:58 +01:00
parent 8fb2a535a3
commit eb9b799f9b
4 changed files with 29 additions and 0 deletions

View File

@ -136,6 +136,14 @@ controller_container_image_sets:
# Dict mapping Jinja2 block names in kolla's Docker images to their contents.
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.

View File

@ -26,3 +26,11 @@ kolla_sources: {}
# Dict mapping Jinja2 block names in kolla's Docker images to their contents.
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: {}

View File

@ -10,3 +10,8 @@
{{ '{% endblock %}' }}
{% endfor %}
{% for var_name, var_value in kolla_build_customizations.items() %}
{{ '{% set ' ~ var_name ~ ' = ' ~ var_value | to_json ~ ' %}' }}
{% endfor %}

View File

@ -55,6 +55,14 @@
# Dict mapping Jinja2 block names in kolla's Docker images to their contents.
#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.