James E. Blair 4b025bbf2f Add upload-image-swift role
This is a near-copy of the swift-upload-image role in
opendev/zuul-providers.  This is to share the opendev-developed role
with the wider zuul community as we start to test zuul-launcher.

Change-Id: I95ef921f08fabae9fce2e57884905b11b7d0c1cb
2025-03-17 14:38:40 -07:00
..
2025-03-17 14:38:40 -07:00
2025-03-17 14:38:40 -07:00
2025-03-17 14:38:40 -07:00
2025-03-17 14:38:40 -07:00

Upload a filesystem image to a swift container

This uploads a filesystem image (for example, one built by diskimage builder) to an OpenStack Object Store (Swift) container. The role returns an artifact to Zuul suitable for use by the zuul-launcher.

Role Variables

Complex argument which contains the cloud configuration in os-cloud-config (clouds.yaml) format. It is expected that this argument comes from a Secret.

This role will create containers which do not already exist.

Note that you will want to set this to a value that uniquely identifies your Zuul installation if using shared object stores that require globally unique container names. For example if using a public cloud whose Swift API is provided by Ceph.

The container should be dedicated to image uploads so that the "delete_after" option may be safely used.

The image format (e.g., qcow2).