Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
namespace: stackhpc
name: openstack
version: 0.3.0
version: 0.4.0
readme: README.md
authors:
- StackHPC Ltd
Expand Down
3 changes: 3 additions & 0 deletions roles/os_images/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ mutually exclusive where each contain:
* `visibility`: (optional) Allowed values are 'public', 'private', 'shared'
or 'community'. Default is 'public'
* `owner`: (optional) ID of the project that should own the uploaded image.
* `use_import`: (optional) Whether to use an import workflow instead of direct upload.
Useful in conjuction with an [interoperable image import](https://docs.openstack.org/glance/latest/admin/interoperable-image-import.html).
Defaults to 'false'.

`os_images_common`: A set of elements to include in every image listed.
Defaults to `cloud-init enable-serial-console stable-interface-names`.
Expand Down
1 change: 1 addition & 0 deletions roles/os_images/tasks/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
properties: "{{ os_images_common_properties | combine(item.0.properties | default({})) or omit }}"
kernel: "{{ item.1.id if is_baremetal else omit }}"
ramdisk: "{{ item.2.id if is_baremetal else omit }}"
use_import: "{{ item.0.use_import | default(omit) }}"
vars:
is_baremetal: "{{ item.0.elements is defined and 'baremetal' in item.0.elements }}"
visibility: "{{ item.0.visibility | default(item.0.is_public | ternary('public', 'private') if item.0.is_public is defined else os_images_visibility) }}"
Expand Down