Update the template_version alias for all the templates to pike.
[apex-tripleo-heat-templates.git] / docker / services / services.yaml
1 heat_template_version: pike
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   RoleName:
30     default: ''
31     description: Role name on which the service is applied
32     type: string
33   RoleParameters:
34     default: {}
35     description: Parameters specific to the role
36     type: json
37
38 resources:
39
40   PuppetServices:
41     type: ../../puppet/services/services.yaml
42     properties:
43       Services: {get_param: Services}
44       ServiceNetMap: {get_param: ServiceNetMap}
45       EndpointMap: {get_param: EndpointMap}
46       DefaultPasswords: {get_param: DefaultPasswords}
47       RoleName: {get_param: RoleName}
48       RoleParameters: {get_param: RoleParameters}
49
50   ServiceChain:
51     type: OS::Heat::ResourceChain
52     properties:
53       resources: {get_param: Services}
54       concurrent: true
55       resource_properties:
56         ServiceNetMap: {get_param: ServiceNetMap}
57         EndpointMap: {get_param: EndpointMap}
58         DefaultPasswords: {get_param: DefaultPasswords}
59         RoleName: {get_param: RoleName}
60         RoleParameters: {get_param: RoleParameters}
61
62 outputs:
63   role_data:
64     description: Combined Role data for this set of services.
65     value:
66       service_names:
67         {get_attr: [PuppetServices, role_data, service_names]}
68       monitoring_subscriptions:
69         {get_attr: [PuppetServices, role_data, monitoring_subscriptions]}
70       logging_sources:
71         {get_attr: [PuppetServices, role_data, logging_sources]}
72       logging_groups:
73         {get_attr: [PuppetServices, role_data, logging_groups]}
74       service_config_settings:
75         {get_attr: [PuppetServices, role_data, service_config_settings]}
76       config_settings:
77         {get_attr: [PuppetServices, role_data, config_settings]}
78       global_config_settings:
79         {get_attr: [PuppetServices, role_data, global_config_settings]}
80       step_config:
81         {get_attr: [ServiceChain, role_data, step_config]}
82       puppet_config: {get_attr: [ServiceChain, role_data, puppet_config]}
83       kolla_config:
84         map_merge: {get_attr: [ServiceChain, role_data, kolla_config]}
85       docker_config:
86         {get_attr: [ServiceChain, role_data, docker_config]}
87       docker_puppet_tasks:
88         {get_attr: [ServiceChain, role_data, docker_puppet_tasks]}
89       host_prep_tasks:
90         yaql:
91           # Note we use distinct() here to filter any identical tasks
92           expression: $.data.where($ != null).select($.get('host_prep_tasks')).where($ != null).flatten().distinct()
93           data: {get_attr: [ServiceChain, role_data]}
94       upgrade_tasks:
95         yaql:
96           # Note we use distinct() here to filter any identical tasks, e.g yum update for all services
97           expression: $.data.where($ != null).select($.get('upgrade_tasks')).where($ != null).flatten().distinct()
98           data: {get_attr: [ServiceChain, role_data]}
99       upgrade_batch_tasks:
100         yaql:
101           # Note we use distinct() here to filter any identical tasks, e.g yum update for all services
102           expression: $.data.where($ != null).select($.get('upgrade_batch_tasks')).where($ != null).flatten().distinct()
103           data: {get_attr: [ServiceChain, role_data]}
104       service_metadata_settings:
105         get_attr: [PuppetServices, role_data, service_metadata_settings]