Move ceph cluster config out of allNodesConfig
[apex-tripleo-heat-templates.git] / puppet / services / services.yaml
1 heat_template_version: 2016-10-14
2
3 description: >
4   Utility stack to convert an array of services into a set of combined
5   role configs.
6
7 parameters:
8   Services:
9     default: []
10     description: |
11         List nested stack service templates.
12     type: comma_delimited_list
13   ServiceNetMap:
14     default: {}
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.
18     type: json
19   EndpointMap:
20     default: {}
21     description: Mapping of service endpoint -> protocol. Typically set
22                  via parameter_defaults in the resource registry.
23     type: json
24   DefaultPasswords:
25     default: {}
26     description: Mapping of service -> default password. Used to help
27                  pass top level passwords managed by Heat into services.
28     type: json
29
30 resources:
31
32   ServiceChain:
33     type: OS::Heat::ResourceChain
34     properties:
35       resources: {get_param: Services}
36       concurrent: true
37       resource_properties:
38         ServiceNetMap: {get_param: ServiceNetMap}
39         EndpointMap: {get_param: EndpointMap}
40         DefaultPasswords: {get_param: DefaultPasswords}
41
42 outputs:
43   role_data:
44     description: Combined Role data for this set of services.
45     value:
46       service_names:
47         # Filter any null/None service_names which may be present due to mapping
48         # of services to OS::Heat::None
49         yaql:
50           expression: list($.data.s_names.where($ != null))
51           data: {s_names: {get_attr: [ServiceChain, role_data, service_name]}}
52       config_settings: {map_merge: {get_attr: [ServiceChain, role_data, config_settings]}}
53       step_config: {list_join: ["\n", {get_attr: [ServiceChain, role_data, step_config]}]}