Fixing resources path in OpenDaylight
[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   EnableCombinationAlarms:
25     default: false
26     description: Combination alarms are deprecated in Newton, hence disabled
27                  by default. To enable, set this parameter to true.
28     type: boolean
29
30 resources:
31   AodhBase:
32     type: ./aodh-base.yaml
33     properties:
34       ServiceNetMap: {get_param: ServiceNetMap}
35       DefaultPasswords: {get_param: DefaultPasswords}
36       EndpointMap: {get_param: EndpointMap}
37
38   ApacheServiceBase:
39     type: ./apache.yaml
40     properties:
41       ServiceNetMap: {get_param: ServiceNetMap}
42       DefaultPasswords: {get_param: DefaultPasswords}
43       EndpointMap: {get_param: EndpointMap}
44
45 outputs:
46   role_data:
47     description: Role data for the Aodh API service.
48     value:
49       service_name: aodh_api
50       monitoring_subscription: {get_param: MonitoringSubscriptionAodhApi}
51       config_settings:
52         map_merge:
53           - get_attr: [AodhBase, role_data, config_settings]
54           - get_attr: [ApacheServiceBase, role_data, config_settings]
55           - aodh::wsgi::apache::ssl: false
56             aodh::wsgi::apache::servername:
57               str_replace:
58                 template:
59                   '"%{::fqdn_$NETWORK}"'
60                 params:
61                   $NETWORK: {get_param: [ServiceNetMap, AodhApiNetwork]}
62             aodh::api::service_name: 'httpd'
63             tripleo.aodh_api.firewall_rules:
64               '128 aodh-api':
65                 dport:
66                   - 8042
67                   - 13042
68             # NOTE: bind IP is found in Heat replacing the network name with the
69             # local node IP for the given network; replacement examples
70             # (eg. for internal_api):
71             # internal_api -> IP
72             # internal_api_uri -> [IP]
73             # internal_api_subnet - > IP/CIDR
74             aodh::api::host: {get_param: [ServiceNetMap, AodhApiNetwork]}
75             aodh::wsgi::apache::bind_host: {get_param: [ServiceNetMap, AodhApiNetwork]}
76             tripleo::profile::base::aodh::api::enable_combination_alarms: {get_param: EnableCombinationAlarms}
77       service_config_settings:
78           get_attr: [AodhBase, role_data, service_config_settings]
79       step_config: |
80         include tripleo::profile::base::aodh::api