1 heat_template_version: ocata
4 Utility stack to convert an array of services into a set of combined
11 List nested stack service templates.
12 type: comma_delimited_list
15 description: Mapping of service_name -> network name. Typically set
16 via parameter_defaults in the resource registry. This
17 mapping overrides those in ServiceNetMapDefaults.
21 description: Mapping of service endpoint -> protocol. Typically set
22 via parameter_defaults in the resource registry.
26 description: Mapping of service -> default password. Used to help
27 pass top level passwords managed by Heat into services.
33 type: OS::Heat::ResourceChain
35 resources: {get_param: Services}
38 ServiceNetMap: {get_param: ServiceNetMap}
39 EndpointMap: {get_param: EndpointMap}
40 DefaultPasswords: {get_param: DefaultPasswords}
43 type: OS::TripleO::LoggingConfiguration
45 ServiceServerMetadataHook:
46 type: OS::TripleO::ServiceServerMetadataHook
48 RoleData: {get_attr: [ServiceChain, role_data]}
52 description: Combined Role data for this set of services.
55 {get_attr: [ServiceChain, role_data, service_name]}
56 monitoring_subscriptions:
58 expression: list($.data.role_data.where($ != null).select($.get('monitoring_subscription')).where($ != null))
59 data: {role_data: {get_attr: [ServiceChain, role_data]}}
61 # Transform the individual logging_source configuration from
62 # each service in the chain into a global list, adding some
63 # default configuration at the same time.
67 default_format => $.data.default_format,
68 pos_file_path => $.data.pos_file_path,
69 sources => $.data.sources.flatten()
71 $sources.where($ != null).select({
75 'format' => $.get('format', $default_format),
76 'pos_file' => $.get('pos_file', $pos_file_path + '/' + $.tag + '.pos')
80 - {get_attr: [LoggingConfiguration, LoggingDefaultSources]}
82 expression: list($.data.role_data.where($ != null).select($.get('logging_source')).where($ != null))
83 data: {role_data: {get_attr: [ServiceChain, role_data]}}
85 - {get_attr: [LoggingConfiguration, LoggingExtraSources]}
86 default_format: {get_attr: [LoggingConfiguration, LoggingDefaultFormat]}
87 pos_file_path: {get_attr: [LoggingConfiguration, LoggingPosFilePath]}
89 # Build a list of unique groups to which we should add the
93 set(($.data.default + $.data.extra + $.data.role_data.where($ != null).select($.get('logging_groups'))).flatten()).where($)
95 default: {get_attr: [LoggingConfiguration, LoggingDefaultGroups]}
96 extra: {get_attr: [LoggingConfiguration, LoggingExtraGroups]}
97 role_data: {get_attr: [ServiceChain, role_data]}
98 config_settings: {map_merge: {get_attr: [ServiceChain, role_data, config_settings]}}
99 global_config_settings:
102 expression: list($.data.role_data.where($ != null).select($.get('global_config_settings')).where($ != null))
103 data: {role_data: {get_attr: [ServiceChain, role_data]}}
104 service_config_settings:
106 expression: $.data.role_data.where($ != null).select($.get('service_config_settings')).where($ != null).reduce($1.mergeWith($2), {})
107 data: {role_data: {get_attr: [ServiceChain, role_data]}}
108 step_config: {get_attr: [ServiceChain, role_data, step_config]}
111 # Note we use distinct() here to filter any identical tasks, e.g yum update for all services
112 expression: $.data.where($ != null).select($.get('upgrade_tasks')).where($ != null).flatten().distinct()
113 data: {get_attr: [ServiceChain, role_data]}
116 # Note we use distinct() here to filter any identical tasks, e.g yum update for all services
117 expression: $.data.where($ != null).select($.get('upgrade_batch_tasks')).where($ != null).flatten().distinct()
118 data: {get_attr: [ServiceChain, role_data]}
119 service_metadata_settings: {get_attr: [ServiceServerMetadataHook, metadata]}