Merge "Change NeutronWorkers default to result in previous behavior"
[apex-tripleo-heat-templates.git] / puppet / services / aodh-api.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Aodh 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   MonitoringSubscriptionAodhApi:
22     default: 'overcloud-ceilometer-aodh-api'
23     type: string
24
25 resources:
26   AodhBase:
27     type: ./aodh-base.yaml
28     properties:
29       ServiceNetMap: {get_param: ServiceNetMap}
30       DefaultPasswords: {get_param: DefaultPasswords}
31       EndpointMap: {get_param: EndpointMap}
32
33   ApacheServiceBase:
34     type: ./apache.yaml
35     properties:
36       ServiceNetMap: {get_param: ServiceNetMap}
37       DefaultPasswords: {get_param: DefaultPasswords}
38       EndpointMap: {get_param: EndpointMap}
39
40 outputs:
41   role_data:
42     description: Role data for the Aodh API service.
43     value:
44       service_name: aodh_api
45       monitoring_subscription: {get_param: MonitoringSubscriptionAodhApi}
46       config_settings:
47         map_merge:
48           - get_attr: [AodhBase, role_data, config_settings]
49           - get_attr: [ApacheServiceBase, role_data, config_settings]
50           - aodh::wsgi::apache::ssl: false
51             aodh::api::service_name: 'httpd'
52             tripleo.aodh_api.firewall_rules:
53               '128 aodh-api':
54                 dport:
55                   - 8042
56                   - 13042
57             # NOTE: bind IP is found in Heat replacing the network name with the
58             # local node IP for the given network; replacement examples
59             # (eg. for internal_api):
60             # internal_api -> IP
61             # internal_api_uri -> [IP]
62             # internal_api_subnet - > IP/CIDR
63             aodh::api::host: {get_param: [ServiceNetMap, AodhApiNetwork]}
64             aodh::wsgi::apache::bind_host: {get_param: [ServiceNetMap, AodhApiNetwork]}
65       step_config: |
66         include tripleo::profile::base::aodh::api