3eebfa497c4d0f99452445e1ea8620488167810c
[apex-tripleo-heat-templates.git] / puppet / services / heat-api-cloudwatch.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   Openstack Heat CloudWatch API service configured with Puppet
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   HeatWorkers:
19     default: 0
20     description: Number of workers for Heat service.
21     type: number
22
23 resources:
24   HeatBase:
25     type: ./heat-base.yaml
26     properties:
27       ServiceNetMap: {get_param: ServiceNetMap}
28       EndpointMap: {get_param: EndpointMap}
29
30 outputs:
31   role_data:
32     description: Role data for the Heat Cloudwatch API role.
33     value:
34       service_name: heat_api_cloudwatch
35       config_settings:
36         map_merge:
37           - get_attr: [HeatBase, role_data, config_settings]
38           - heat::api_cloudwatch::workers: {get_param: HeatWorkers}
39             tripleo.heat_api_cloudwatch.firewall_rules:
40               '125 heat_cloudwatch':
41                 dport:
42                   - 8003
43                   - 13003
44       step_config: |
45         include ::tripleo::profile::base::heat::api_cloudwatch