Merge "Add stack output ansible_group_vars"

This commit is contained in:
Zuul 2018-10-19 08:17:09 +00:00 committed by Gerrit Code Review
commit ae7beb716b

View File

@ -329,6 +329,17 @@ resources:
expression: coalesce($.data, []).where($ != null).select($.get('host_prep_tasks')).where($ != null).flatten().distinct()
data: {get_attr: [ServiceChain, role_data]}
AnsibleGroupVars:
type: OS::Heat::Value
properties:
type: json
value:
map_merge:
yaql:
expression: list(coalesce($.data.role_data, []).where($ != null).select($.get('ansible_group_vars')).where($ != null))
data: {role_data: {get_attr: [ServiceChain, role_data]}}
outputs:
role_data:
description: Combined Role data for this set of services.
@ -357,6 +368,7 @@ outputs:
post_update_tasks: {get_attr: [PostUpdateTasks, value]}
upgrade_batch_tasks: {get_attr: [UpgradeBatchTasks, value]}
service_metadata_settings: {get_attr: [ServiceServerMetadataHook, metadata]}
ansible_group_vars: {get_attr: [AnsibleGroupVars, value]}
# Keys to support docker/services
puppet_config: {get_attr: [PuppetConfig, value]}