Merge "Cleanup haproxy service from explicit services enablement"
[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   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   HeatWorkers:
22     default: 0
23     description: Number of workers for Heat service.
24     type: number
25   MonitoringSubscriptionHeatApiCloudwatch:
26     default: 'overcloud-heat-api-cloudwatch'
27     type: string
28
29 resources:
30   HeatBase:
31     type: ./heat-base.yaml
32     properties:
33       ServiceNetMap: {get_param: ServiceNetMap}
34       DefaultPasswords: {get_param: DefaultPasswords}
35       EndpointMap: {get_param: EndpointMap}
36
37 outputs:
38   role_data:
39     description: Role data for the Heat Cloudwatch API role.
40     value:
41       service_name: heat_api_cloudwatch
42       monitoring_subscription: {get_param: MonitoringSubscriptionHeatApiCloudwatch}
43       config_settings:
44         map_merge:
45           - get_attr: [HeatBase, role_data, config_settings]
46           - heat::api_cloudwatch::workers: {get_param: HeatWorkers}
47             tripleo.heat_api_cloudwatch.firewall_rules:
48               '125 heat_cloudwatch':
49                 dport:
50                   - 8003
51                   - 13003
52             # NOTE: bind IP is found in Heat replacing the network name with the
53             # local node IP for the given network; replacement examples
54             # (eg. for internal_api):
55             # internal_api -> IP
56             # internal_api_uri -> [IP]
57             # internal_api_subnet - > IP/CIDR
58             heat::api_cloudwatch::bind_host: {get_param: [ServiceNetMap, HeatApiNetwork]}
59       step_config: |
60         include ::tripleo::profile::base::heat::api_cloudwatch