Adding configurability to the amphora image format
By adding parameter `OctaviaAmphoraImageFormat`, it adds flexibility to select amphora image format without forcing to use the use of `NovaEnableRbdBackend` parameter. Change-Id: I61ae421058fa9a944b2bbbbeeccef6b738c22a7e Closes-Bug: #1817777
This commit is contained in:
parent
c55109f3e5
commit
1a802f3ddb
|
@ -55,6 +55,12 @@ parameters:
|
||||||
on Red Hat Enterprise Linux).
|
on Red Hat Enterprise Linux).
|
||||||
type: string
|
type: string
|
||||||
default: ''
|
default: ''
|
||||||
|
OctaviaAmphoraImageFormat:
|
||||||
|
default: 'qcow2'
|
||||||
|
description: Image format ('qcow2' or 'raw') of the amphora image.
|
||||||
|
type: string
|
||||||
|
constraints:
|
||||||
|
- allowed_values: ['qcow2', 'raw']
|
||||||
OctaviaAmphoraImageTag:
|
OctaviaAmphoraImageTag:
|
||||||
default: 'amphora-image'
|
default: 'amphora-image'
|
||||||
description: Glance image tag for identifying the amphora image.
|
description: Glance image tag for identifying the amphora image.
|
||||||
|
@ -163,6 +169,14 @@ parameters:
|
||||||
constraints:
|
constraints:
|
||||||
- allowed_values: ['docker', 'podman']
|
- allowed_values: ['docker', 'podman']
|
||||||
|
|
||||||
|
conditions:
|
||||||
|
octavia_raw_image_check:
|
||||||
|
or:
|
||||||
|
- equals:
|
||||||
|
- get_param: OctaviaAmphoraImageFormat
|
||||||
|
- raw
|
||||||
|
- get_param: NovaEnableRbdBackend
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
{% if not octavia_standalone %}
|
{% if not octavia_standalone %}
|
||||||
default_key_pair:
|
default_key_pair:
|
||||||
|
@ -186,7 +200,7 @@ resources:
|
||||||
amp_ssh_key_data: { get_attr: [default_key_pair, public_key] }
|
amp_ssh_key_data: { get_attr: [default_key_pair, public_key] }
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% raw %}
|
{% raw %}
|
||||||
amp_to_raw: { get_param: NovaEnableRbdBackend }
|
amp_to_raw: {if: [octavia_raw_image_check:, true, false]}
|
||||||
auth_username: { get_param: OctaviaUserName }
|
auth_username: { get_param: OctaviaUserName }
|
||||||
auth_password: { get_param: OctaviaPassword }
|
auth_password: { get_param: OctaviaPassword }
|
||||||
auth_project_name: { get_param: OctaviaProjectName }
|
auth_project_name: { get_param: OctaviaProjectName }
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
By adding parameter `OctaviaAmphoraImageFormat`, it adds flexibility to
|
||||||
|
select amphora image format without forcing to use of the
|
||||||
|
`NovaEnableRbdBackend` parameter.
|
Loading…
Reference in New Issue