Skip to content

Commit be84bcb

Browse files
authored
Merge pull request #54 from stackhpc/interoperable_images
os_images: Add an import workflow feature
2 parents 3296271 + b9df878 commit be84bcb

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

galaxy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
namespace: stackhpc
33
name: openstack
4-
version: 0.3.0
4+
version: 0.4.0
55
readme: README.md
66
authors:
77
- StackHPC Ltd

roles/os_images/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ mutually exclusive where each contain:
7272
* `visibility`: (optional) Allowed values are 'public', 'private', 'shared'
7373
or 'community'. Default is 'public'
7474
* `owner`: (optional) ID of the project that should own the uploaded image.
75+
* `use_import`: (optional) Whether to use an import workflow instead of direct upload.
76+
Useful in conjuction with an [interoperable image import](https://docs.openstack.org/glance/latest/admin/interoperable-image-import.html).
77+
Defaults to 'false'.
7578

7679
`os_images_common`: A set of elements to include in every image listed.
7780
Defaults to `cloud-init enable-serial-console stable-interface-names`.

roles/os_images/tasks/upload.yml

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
properties: "{{ os_images_common_properties | combine(item.0.properties | default({})) or omit }}"
114114
kernel: "{{ item.1.id if is_baremetal else omit }}"
115115
ramdisk: "{{ item.2.id if is_baremetal else omit }}"
116+
use_import: "{{ item.0.use_import | default(omit) }}"
116117
vars:
117118
is_baremetal: "{{ item.0.elements is defined and 'baremetal' in item.0.elements }}"
118119
visibility: "{{ item.0.visibility | default(item.0.is_public | ternary('public', 'private') if item.0.is_public is defined else os_images_visibility) }}"

0 commit comments

Comments
 (0)