zuul-jobs/roles/build-diskimage
James E. Blair 4e1e155638 Allow dib_elements key to be a nested list
It's highly likely that folks may want to use YAML anchors to
build up list of DIB elements.  To aid in that, allow the value
to be a list of lists and automatically flatton it.

Change-Id: I55b9cb16951b51da32f99ca5858b75217951b279
2024-09-12 07:54:38 -07:00
..
defaults Add build_diskimage_environment role variable 2024-08-23 13:37:37 +02:00
tasks Allow dib_elements key to be a nested list 2024-09-12 07:54:38 -07:00
README.rst Allow dib_elements key to be a nested list 2024-09-12 07:54:38 -07:00

Role for building images using diskimage-builder.

Diskimage-builder and diskimage elements can be configured by passing corresponding settings as environment variables to this role, or using the build_diskimage_environment variable.

By default the build-disk-image command does not print its output to stdout, but only to a log file in the configured log directory. To additionally log to stdout, set DIB_QUIET: 0 in build_diskimage_environment.

Example:

roles:
 - name: build-diskimage
   environment:
     ELEMENTS_PATH: /tmp/elements
     DIB_PYPI_MIRROR_URL: https://example.com

Role variables

Name of the image to build.