c9991c2e31
With I57047682cfa82ba6ca4affff54fab5216e9ba51c Heat has added a new template version for wallaby. This would allow us to use 2-argument variant of the ``if`` function that would allow for e.g. conditional definition of resource properties and help cleanup templates. If only two arguments are passed to ``if`` function, the entire enclosing item is removed when the condition is false. Change-Id: I25f981b60c6a66b39919adc38c02a051b6c51269
81 lines
1.5 KiB
YAML
81 lines
1.5 KiB
YAML
heat_template_version: wallaby
|
|
|
|
parameters:
|
|
|
|
name:
|
|
type: string
|
|
default: ""
|
|
|
|
actions:
|
|
type: comma_delimited_list
|
|
default: ['CREATE', 'UPDATE']
|
|
|
|
server:
|
|
type: string
|
|
|
|
config:
|
|
type: string
|
|
|
|
input_values:
|
|
type: json
|
|
description: input values for the software deployments
|
|
default: {}
|
|
|
|
input_key:
|
|
type: string
|
|
default: 'get_input'
|
|
|
|
signal_transport:
|
|
type: string
|
|
default: 'CFN_SIGNAL'
|
|
|
|
input_values_validate:
|
|
type: string
|
|
default: 'LAX'
|
|
|
|
resources:
|
|
|
|
TripleODeployment:
|
|
type: OS::Heat::Value
|
|
properties:
|
|
value:
|
|
name: {get_param: name}
|
|
server: {get_param: server}
|
|
config: {get_param: config}
|
|
input_values: {get_param: input_values}
|
|
deployment: {get_resource: TripleOSoftwareDeployment}
|
|
|
|
TripleOSoftwareDeployment:
|
|
type: OS::Heat::StructuredDeployment
|
|
properties:
|
|
name: deployment_resource
|
|
config: {get_param: config}
|
|
server: {get_resource: TripleOServer}
|
|
input_values: {get_param: input_values}
|
|
signal_transport: NO_SIGNAL
|
|
actions: {get_param: actions}
|
|
|
|
TripleOServer:
|
|
type: OS::Heat::DeployedServer
|
|
properties:
|
|
name: server_resource
|
|
software_config_transport: POLL_SERVER_HEAT
|
|
|
|
outputs:
|
|
|
|
deploy_status_code:
|
|
value: 0
|
|
deploy_stderr:
|
|
value: ''
|
|
deploy_stdout:
|
|
value: ''
|
|
show:
|
|
value: ''
|
|
|
|
update_managed_packages:
|
|
description: boolean value indicating whether to upgrade managed packages
|
|
value: false
|
|
hostname:
|
|
description: hostname
|
|
value: ''
|