Add os-collect-config data as an output
Adds a new output, ServerOsCollectConfigData, which is the os-collect-config configuration associated with each server resource. This can be used to [pre]configure the os-collect-config agents on deployed-server's. Having the data available as a stack output is more user friendly than having to query several nested levels of stack resources, and then inspect resource metadata. implements blueprint split-stack-default Change-Id: Iaf062f1a72e2a9e4d97f84c67f72408a6b5cebfc Depends-On: I8acfd67cd8138d587cc362184c84a08134bf3157
This commit is contained in:
parent
d95394a01c
commit
c8a266d99e
@ -133,3 +133,5 @@ outputs:
|
||||
- {get_attr: [ControlPlanePort, fixed_ips, 0, ip_address]}
|
||||
name:
|
||||
value: {get_attr: [HostsEntryDeployment, hostname]}
|
||||
os_collect_config:
|
||||
value: {get_attr: [deployed-server, os_collect_config]}
|
||||
|
@ -741,6 +741,15 @@ resources:
|
||||
{{role.name}}: {get_attr: [{{role.name}}ServiceChainRoleData, value]}
|
||||
{% endfor %}
|
||||
|
||||
ServerOsCollectConfigData:
|
||||
type: OS::Heat::Value
|
||||
properties:
|
||||
type: json
|
||||
value:
|
||||
{% for role in roles %}
|
||||
{{role.name}}: {get_attr: [{{role.name}}, attributes, os_collect_config]}
|
||||
{% endfor %}
|
||||
|
||||
outputs:
|
||||
ManagedEndpoints:
|
||||
description: Asserts that the keystone endpoints have been provisioned.
|
||||
@ -790,4 +799,10 @@ outputs:
|
||||
value:
|
||||
{% for role in roles %}
|
||||
{{role.name}}: {get_attr: [{{role.name}}NetworkHostnameMap, value]}
|
||||
{% endfor %}
|
||||
ServerOsCollectConfigData:
|
||||
description: The os-collect-config configuration associated with each server resource
|
||||
value:
|
||||
{% for role in roles %}
|
||||
{{role.name}}: {get_attr: [{{role.name}}, attributes, os_collect_config]}
|
||||
{% endfor %}
|
||||
|
@ -614,3 +614,6 @@ CTLPLANEIP,CTLPLANEHOST.DOMAIN,CTLPLANEHOST HOSTSSHPUBKEY"
|
||||
management_ip_address:
|
||||
description: IP address of the server in the management network
|
||||
value: {get_attr: [ManagementPort, ip_address]}
|
||||
os_collect_config:
|
||||
description: The os-collect-config configuration associated with this server resource
|
||||
value: {get_attr: [BlockStorage, os_collect_config]}
|
||||
|
@ -625,3 +625,6 @@ CTLPLANEIP,CTLPLANEHOST.DOMAIN,CTLPLANEHOST HOSTSSHPUBKEY"
|
||||
management_ip_address:
|
||||
description: IP address of the server in the management network
|
||||
value: {get_attr: [ManagementPort, ip_address]}
|
||||
os_collect_config:
|
||||
description: The os-collect-config configuration associated with this server resource
|
||||
value: {get_attr: [CephStorage, os_collect_config]}
|
||||
|
@ -651,3 +651,6 @@ CTLPLANEIP,CTLPLANEHOST.DOMAIN,CTLPLANEHOST HOSTSSHPUBKEY"
|
||||
value:
|
||||
{get_resource: NovaCompute}
|
||||
condition: server_not_blacklisted
|
||||
os_collect_config:
|
||||
description: The os-collect-config configuration associated with this server resource
|
||||
value: {get_attr: [NovaCompute, os_collect_config]}
|
||||
|
@ -697,3 +697,6 @@ CTLPLANEIP,CTLPLANEHOST.DOMAIN,CTLPLANEHOST HOSTSSHPUBKEY"
|
||||
tls_cert_modulus_md5:
|
||||
description: MD5 checksum of the TLS Certificate Modulus
|
||||
value: {get_attr: [NodeTLSData, cert_modulus_md5]}
|
||||
os_collect_config:
|
||||
description: The os-collect-config configuration associated with this server resource
|
||||
value: {get_attr: [Controller, os_collect_config]}
|
||||
|
@ -613,3 +613,6 @@ CTLPLANEIP,CTLPLANEHOST.DOMAIN,CTLPLANEHOST HOSTSSHPUBKEY"
|
||||
management_ip_address:
|
||||
description: IP address of the server in the management network
|
||||
value: {get_attr: [ManagementPort, ip_address]}
|
||||
os_collect_config:
|
||||
description: The os-collect-config configuration associated with this server resource
|
||||
value: {get_attr: [SwiftStorage, os_collect_config]}
|
||||
|
@ -648,3 +648,6 @@ CTLPLANEIP,CTLPLANEHOST.DOMAIN,CTLPLANEHOST HOSTSSHPUBKEY"
|
||||
management_ip_address:
|
||||
description: IP address of the server in the management network
|
||||
value: {get_attr: [ManagementPort, ip_address]}
|
||||
os_collect_config:
|
||||
description: The os-collect-config configuration associated with this server resource
|
||||
value: {get_attr: [{{role}}, os_collect_config]}
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
features:
|
||||
- Adds a new output, ServerOsCollectConfigData, which is the
|
||||
os-collect-config configuration associated with each server resource.
|
||||
This can be used to [pre]configure the os-collect-config agents on
|
||||
deployed-server's.
|
Loading…
Reference in New Issue
Block a user