Add support for configuration of Jinja2 blocks in kolla images
This commit is contained in:
@@ -131,6 +131,9 @@ controller_container_image_regexes: "{{ controller_container_image_regex_map | s
|
|||||||
controller_container_image_sets:
|
controller_container_image_sets:
|
||||||
- regexes: "{{ controller_container_image_regexes | join(' ') }}"
|
- regexes: "{{ controller_container_image_regexes | join(' ') }}"
|
||||||
|
|
||||||
|
# Dict mapping Jinja2 block names in kolla's Docker images to their contents.
|
||||||
|
kolla_build_blocks: {}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Kolla-ansible configuration.
|
# Kolla-ansible configuration.
|
||||||
|
|
||||||
|
|||||||
@@ -23,3 +23,6 @@ kolla_openstack_release:
|
|||||||
# location: https://github.com/openstack/ironic
|
# location: https://github.com/openstack/ironic
|
||||||
# reference: master
|
# reference: master
|
||||||
kolla_sources: {}
|
kolla_sources: {}
|
||||||
|
|
||||||
|
# Dict mapping Jinja2 block names in kolla's Docker images to their contents.
|
||||||
|
kolla_build_blocks: {}
|
||||||
|
|||||||
@@ -3,3 +3,10 @@
|
|||||||
{% raw %}
|
{% raw %}
|
||||||
{% extends parent_template %}
|
{% extends parent_template %}
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
|
{% for block_name, block_contents in kolla_build_blocks.items() %}
|
||||||
|
{{ '{% block ' ~ block_name ~ ' %}' }}
|
||||||
|
{{ block_contents }}
|
||||||
|
{{ '{% endblock %}' }}
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
|
|||||||
@@ -49,6 +49,12 @@
|
|||||||
# reference: master
|
# reference: master
|
||||||
#kolla_sources:
|
#kolla_sources:
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Kolla image build configuration.
|
||||||
|
|
||||||
|
# Dict mapping Jinja2 block names in kolla's Docker images to their contents.
|
||||||
|
#kolla_build_blocks:
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Kolla-ansible configuration.
|
# Kolla-ansible configuration.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user