Merge "Move ceph cluster config out of allNodesConfig"
[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
22 resources:
23   AodhBase:
24     type: ./aodh-base.yaml
25     properties:
26       ServiceNetMap: {get_param: ServiceNetMap}
27       DefaultPasswords: {get_param: DefaultPasswords}
28       EndpointMap: {get_param: EndpointMap}
29
30   ApacheServiceBase:
31     type: ./apache.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 Aodh API service.
40     value:
41       service_name: aodh_api
42       config_settings:
43         map_merge:
44           - get_attr: [AodhBase, role_data, config_settings]
45           - get_attr: [ApacheServiceBase, role_data, config_settings]
46           - aodh::wsgi::apache::ssl: false
47             aodh::api::service_name: 'httpd'
48             tripleo.aodh_api.firewall_rules:
49               '128 aodh-api':
50                 dport:
51                   - 8042
52                   - 13042
53             # NOTE: bind IP is found in Heat replacing the network name with the
54             # local node IP for the given network; replacement examples
55             # (eg. for internal_api):
56             # internal_api -> IP
57             # internal_api_uri -> [IP]
58             # internal_api_subnet - > IP/CIDR
59             aodh::api::host: {get_param: [ServiceNetMap, AodhApiNetwork]}
60             aodh::wsgi::apache::bind_host: {get_param: [ServiceNetMap, AodhApiNetwork]}
61       step_config: |
62         include tripleo::profile::base::aodh::api