Merge "Use jinja for image build conditionals"
This commit is contained in:
commit
09ea1b21d3
|
@ -20,19 +20,19 @@ export ELEMENTS_PATH=$ELEMENTS
|
|||
{% endif %}
|
||||
|
||||
# the tripleo_image_type is set and passed from the ci job definition
|
||||
if [ "{{ tripleo_image_type }}" == "overcloud-hardened-uefi-full" ]; then
|
||||
CONFIG_FILES="--config-file \
|
||||
{{ tripleo_common_path }}/image-yaml/overcloud-hardened-images-uefi-python3.yaml \
|
||||
--config-file {{ tripleo_common_path }}/image-yaml/overcloud-hardened-images-uefi-{{ tripleo_image_os }}.yaml"
|
||||
elif [ "{{ tripleo_image_type }}" == "overcloud-hardened-full" ]; then
|
||||
CONFIG_FILES="--config-file \
|
||||
{{ tripleo_common_path }}/image-yaml/{{ hardened_image_config[python_v] }} \
|
||||
--config-file {{ tripleo_common_path }}/image-yaml/overcloud-hardened-images-{{ tripleo_image_os }}.yaml"
|
||||
else
|
||||
CONFIG_FILES="--config-file \
|
||||
{{ tripleo_common_path }}/image-yaml/{{ base_image_config[python_v] }} \
|
||||
--config-file {{ tripleo_common_path }}/image-yaml/overcloud-images-{{ tripleo_image_os }}.yaml"
|
||||
fi
|
||||
{% if tripleo_image_type == "overcloud-hardened-uefi-full" %}
|
||||
CONFIG_FILES="--config-file \
|
||||
{{ tripleo_common_path }}/image-yaml/overcloud-hardened-images-uefi-python3.yaml \
|
||||
--config-file {{ tripleo_common_path }}/image-yaml/overcloud-hardened-images-uefi-{{ tripleo_image_os }}.yaml"
|
||||
{% elif tripleo_image_type == "overcloud-hardened-full" %}
|
||||
CONFIG_FILES="--config-file \
|
||||
{{ tripleo_common_path }}/image-yaml/{{ hardened_image_config[python_v] }} \
|
||||
--config-file {{ tripleo_common_path }}/image-yaml/overcloud-hardened-images-{{ tripleo_image_os }}.yaml"
|
||||
{% else %}
|
||||
CONFIG_FILES="--config-file \
|
||||
{{ tripleo_common_path }}/image-yaml/{{ base_image_config[python_v] }} \
|
||||
--config-file {{ tripleo_common_path }}/image-yaml/overcloud-images-{{ tripleo_image_os }}.yaml"
|
||||
{% endif %}
|
||||
|
||||
{% if dib_local_image is defined %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue