5d6658b353
Overcloud deployment images can now be built via: kayobe overcloud deployment image build This should be done prior to running kayobe overcloud service deploy. In order to build IPA images, the ipa_build_images variable should be set to True. In this case, these images will be used by the overcloud's ironic inspector service during hardware inspection, and by ironic during provisioning.
27 lines
972 B
YAML
27 lines
972 B
YAML
---
|
|
# Build and install an Ironic Python Agent (IPA) image for the overcloud's
|
|
# ironic and ironic-inspector services.
|
|
#
|
|
# The images will be stored in {{ image_cache_path }}/{{ ipa_image_name }}.
|
|
|
|
- name: Ensure Ironic Python Agent images are built and installed
|
|
hosts: controllers[0]
|
|
vars:
|
|
ipa_image_name: "ipa"
|
|
tasks:
|
|
- name: Ensure Ironic Python Agent images are built
|
|
include_role:
|
|
name: stackhpc.os-images
|
|
os_images_venv: "{{ virtualenv_path }}/ipa-build-dib"
|
|
os_images_cache: "{{ image_cache_path }}"
|
|
os_images_common: ""
|
|
os_images_list:
|
|
- name: "{{ ipa_image_name }}"
|
|
elements: "{{ ipa_build_dib_elements }}"
|
|
env: "{{ ipa_build_dib_env }}"
|
|
# Avoid needing to install qemu-img for qcow2 image.
|
|
type: raw
|
|
os_images_git_elements: "{{ ipa_build_dib_git_elements }}"
|
|
os_images_upload: False
|
|
when: "{{ ipa_build_images | bool }}"
|