6dfeaaf39bb34b6e7452d001d7d0658e6065a413
[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   HeatApiCloudwatchLoggingSource:
29     type: json
30     default:
31       tag: openstack.heat.api.cloudwatch
32       path: /var/log/heat/heat-api-cloudwatch.log
33
34 resources:
35   HeatBase:
36     type: ./heat-base.yaml
37     properties:
38       ServiceNetMap: {get_param: ServiceNetMap}
39       DefaultPasswords: {get_param: DefaultPasswords}
40       EndpointMap: {get_param: EndpointMap}
41
42 outputs:
43   role_data:
44     description: Role data for the Heat Cloudwatch API role.
45     value:
46       service_name: heat_api_cloudwatch
47       monitoring_subscription: {get_param: MonitoringSubscriptionHeatApiCloudwatch}
48       logging_source: {get_param: HeatApiCloudwatchLoggingSource}
49       logging_groups:
50         - heat
51       config_settings:
52         map_merge:
53           - get_attr: [HeatBase, role_data, config_settings]
54           - heat::api_cloudwatch::workers: {get_param: HeatWorkers}
55             tripleo.heat_api_cloudwatch.firewall_rules:
56               '125 heat_cloudwatch':
57                 dport:
58                   - 8003
59                   - 13003
60             # NOTE: bind IP is found in Heat replacing the network name with the
61             # local node IP for the given network; replacement examples
62             # (eg. for internal_api):
63             # internal_api -> IP
64             # internal_api_uri -> [IP]
65             # internal_api_subnet - > IP/CIDR
66             heat::api_cloudwatch::bind_host: {get_param: [ServiceNetMap, HeatApiNetwork]}
67       step_config: |
68         include ::tripleo::profile::base::heat::api_cloudwatch