Pierre Riteau c35f112a14 Build overcloud host image directly with DIB
As a first step towards supporting multiple overcloud disk images, this
change introduces a new command to build a disk image directly with DIB:
`kayobe overcloud host image build`.

It also disables building a root disk image during Bifrost bootstrap if
overcloud_dib_build_host_images is set to true.

Change-Id: I93d242889e225b4e60254f6b9cc5eeb457294ac8
Story: 2002098
Task: 41693
2021-11-26 09:28:00 +01:00

23 lines
785 B
YAML

---
{% if not overcloud_dib_build_host_images | bool %}
# Diskimage-builder element for base OS.
dib_os_element: "{{ kolla_bifrost_dib_os_element }}"
# DIB OS release.
dib_os_release: "{{ kolla_bifrost_dib_os_release }}"
# List of DIB image elements.
dib_elements: "{{ (kolla_bifrost_dib_elements + [kolla_bifrost_dib_init_element]) | join(' ') }}"
# DIB image environment variables.
{{ {'dib_env_vars': kolla_bifrost_dib_env_vars} | to_nice_yaml }}
# List of DIB image packages.
dib_packages: "{{ kolla_bifrost_dib_packages | join(',') }}"
{% else %}
# Stop building overcloud host image using Bifrost. This needs to be defined
# here to override the default true value set in kolla-ansible in
# ansible/roles/bifrost/templates/dib.yml.j2.
create_image_via_dib: False
{% endif %}