Merge "Enables auto-detection for VIP interfaces"
[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   EnableInternalTLS:
30     type: boolean
31     default: false
32
33 resources:
34   AodhBase:
35     type: ./aodh-base.yaml
36     properties:
37       ServiceNetMap: {get_param: ServiceNetMap}
38       DefaultPasswords: {get_param: DefaultPasswords}
39       EndpointMap: {get_param: EndpointMap}
40
41   ApacheServiceBase:
42     type: ./apache.yaml
43     properties:
44       ServiceNetMap: {get_param: ServiceNetMap}
45       DefaultPasswords: {get_param: DefaultPasswords}
46       EndpointMap: {get_param: EndpointMap}
47       EnableInternalTLS: {get_param: EnableInternalTLS}
48
49 outputs:
50   role_data:
51     description: Role data for the Aodh API service.
52     value:
53       service_name: aodh_api
54       monitoring_subscription: {get_param: MonitoringSubscriptionAodhApi}
55       config_settings:
56         map_merge:
57           - get_attr: [AodhBase, role_data, config_settings]
58           - get_attr: [ApacheServiceBase, role_data, config_settings]
59           - aodh::wsgi::apache::ssl: {get_param: EnableInternalTLS}
60             aodh::wsgi::apache::servername:
61               str_replace:
62                 template:
63                   '"%{::fqdn_$NETWORK}"'
64                 params:
65                   $NETWORK: {get_param: [ServiceNetMap, AodhApiNetwork]}
66             aodh::api::service_name: 'httpd'
67             aodh::api::enable_proxy_headers_parsing: true
68             tripleo.aodh_api.firewall_rules:
69               '128 aodh-api':
70                 dport:
71                   - 8042
72                   - 13042
73             aodh::api::host:
74               str_replace:
75                 template:
76                   '"%{::fqdn_$NETWORK}"'
77                 params:
78                   $NETWORK: {get_param: [ServiceNetMap, AodhApiNetwork]}
79             # NOTE: bind IP is found in Heat replacing the network name with the
80             # local node IP for the given network; replacement examples
81             # (eg. for internal_api):
82             # internal_api -> IP
83             # internal_api_uri -> [IP]
84             # internal_api_subnet - > IP/CIDR
85             aodh::wsgi::apache::bind_host: {get_param: [ServiceNetMap, AodhApiNetwork]}
86             tripleo::profile::base::aodh::api::enable_combination_alarms: {get_param: EnableCombinationAlarms}
87       service_config_settings:
88         get_attr: [AodhBase, role_data, service_config_settings]
89       step_config: |
90         include tripleo::profile::base::aodh::api