a0e6d30ca2
Presently, "openstack overcloud config download" does not support all Deployment resources, only those included in the RoleData and are natively of type group:ansible. This patch adds support for also pulling all the deployment data for OS::Heat::SoftwareDeployment (singular) resources applied to individual servers of any group type. Those resources are mapped to a new nested stack via the config-download-environment.yaml environment. The nested stack has the same interface as a SoftwareDeployment but only creates a OS::Heat::Value resource. The "config download" code will be updated in a separate patch to read the deployment data from these Value resources and apply them via ansible. The related tripleo-common patch (which depends on this patch) is: I7d7f6b831b8566390d8f747fb6f45e879b0392ba implements: blueprint ansible-config-download Change-Id: Ic2af634403b1ab2924c383035f770453f39a2cd5
88 lines
1.7 KiB
YAML
88 lines
1.7 KiB
YAML
heat_template_version: pike
|
|
|
|
parameters:
|
|
|
|
name:
|
|
type: string
|
|
|
|
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::SoftwareDeployment
|
|
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
|
|
|
|
outputs:
|
|
|
|
deploy_status_code:
|
|
value: 0
|
|
deploy_stderr:
|
|
value: ''
|
|
deploy_stdout:
|
|
value: ''
|
|
show:
|
|
value: ''
|
|
|
|
ecdsa:
|
|
description: Host ssh public key (ecdsa)
|
|
value: 'ecdsa'
|
|
rsa:
|
|
description: Host ssh public key (rsa)
|
|
value: 'rsa'
|
|
ed25519:
|
|
description: Host ssh public key (ed25519)
|
|
value: 'ed25519'
|
|
update_managed_packages:
|
|
description: boolean value indicating whether to upgrade managed packages
|
|
value: false
|
|
hostname:
|
|
description: hostname
|
|
value: ''
|