James E. Blair c5c2eae9c1
Add build_diskimage_environment role variable
This adds a role variable to configure the diskimage-builder environment.
This allows users a choice of using the Ansible "environment" argument,
or using a variable.  The variable may be particularly useful since it
allows full configuration of the role from a Zuul job definition.

Change-Id: I68542f13454b4f2e2e9bb8d356feefddba23d8f2
2024-08-23 13:37:37 +02:00

2.0 KiB

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.