2016-12-23 11:43:39 +00:00
|
|
|
heat_template_version: ocata
|
2016-06-23 15:54:06 -04:00
|
|
|
|
|
|
|
description: >
|
|
|
|
OpenStack Aodh API service configured with Puppet
|
|
|
|
|
|
|
|
parameters:
|
2016-08-11 23:07:46 +02:00
|
|
|
ServiceNetMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service_name -> network name. Typically set
|
|
|
|
via parameter_defaults in the resource registry. This
|
|
|
|
mapping overrides those in ServiceNetMapDefaults.
|
|
|
|
type: json
|
2016-08-17 09:26:05 -04:00
|
|
|
DefaultPasswords:
|
|
|
|
default: {}
|
|
|
|
type: json
|
2016-06-23 15:54:06 -04:00
|
|
|
EndpointMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
|
|
via parameter_defaults in the resource registry.
|
|
|
|
type: json
|
2016-06-09 15:39:22 +02:00
|
|
|
MonitoringSubscriptionAodhApi:
|
|
|
|
default: 'overcloud-ceilometer-aodh-api'
|
|
|
|
type: string
|
2016-09-27 08:45:37 +00:00
|
|
|
EnableInternalTLS:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2016-06-23 15:54:06 -04:00
|
|
|
|
|
|
|
resources:
|
|
|
|
AodhBase:
|
|
|
|
type: ./aodh-base.yaml
|
|
|
|
properties:
|
2016-08-11 23:07:46 +02:00
|
|
|
ServiceNetMap: {get_param: ServiceNetMap}
|
2016-08-17 09:26:05 -04:00
|
|
|
DefaultPasswords: {get_param: DefaultPasswords}
|
2016-06-23 15:54:06 -04:00
|
|
|
EndpointMap: {get_param: EndpointMap}
|
|
|
|
|
2016-08-26 12:41:53 -04:00
|
|
|
ApacheServiceBase:
|
|
|
|
type: ./apache.yaml
|
|
|
|
properties:
|
|
|
|
ServiceNetMap: {get_param: ServiceNetMap}
|
|
|
|
DefaultPasswords: {get_param: DefaultPasswords}
|
|
|
|
EndpointMap: {get_param: EndpointMap}
|
2016-09-27 08:45:37 +00:00
|
|
|
EnableInternalTLS: {get_param: EnableInternalTLS}
|
2016-08-26 12:41:53 -04:00
|
|
|
|
2016-06-23 15:54:06 -04:00
|
|
|
outputs:
|
|
|
|
role_data:
|
|
|
|
description: Role data for the Aodh API service.
|
|
|
|
value:
|
|
|
|
service_name: aodh_api
|
2016-06-09 15:39:22 +02:00
|
|
|
monitoring_subscription: {get_param: MonitoringSubscriptionAodhApi}
|
2016-06-23 15:54:06 -04:00
|
|
|
config_settings:
|
|
|
|
map_merge:
|
|
|
|
- get_attr: [AodhBase, role_data, config_settings]
|
2016-08-26 12:41:53 -04:00
|
|
|
- get_attr: [ApacheServiceBase, role_data, config_settings]
|
2016-09-27 08:45:37 +00:00
|
|
|
- aodh::wsgi::apache::ssl: {get_param: EnableInternalTLS}
|
2016-09-05 14:39:04 +03:00
|
|
|
aodh::wsgi::apache::servername:
|
|
|
|
str_replace:
|
|
|
|
template:
|
2016-11-28 13:07:12 +02:00
|
|
|
"%{hiera('fqdn_$NETWORK')}"
|
2016-09-05 14:39:04 +03:00
|
|
|
params:
|
|
|
|
$NETWORK: {get_param: [ServiceNetMap, AodhApiNetwork]}
|
2016-12-20 11:09:20 -05:00
|
|
|
aodh::wsgi::apache::wsgi_process_display_name: 'aodh_wsgi'
|
2016-06-23 15:54:06 -04:00
|
|
|
aodh::api::service_name: 'httpd'
|
2016-10-13 11:43:35 +03:00
|
|
|
aodh::api::enable_proxy_headers_parsing: true
|
2016-08-25 09:22:08 -04:00
|
|
|
tripleo.aodh_api.firewall_rules:
|
2016-06-23 15:54:06 -04:00
|
|
|
'128 aodh-api':
|
|
|
|
dport:
|
|
|
|
- 8042
|
|
|
|
- 13042
|
2016-09-27 08:45:37 +00:00
|
|
|
aodh::api::host:
|
|
|
|
str_replace:
|
|
|
|
template:
|
2016-11-28 13:07:12 +02:00
|
|
|
"%{hiera('fqdn_$NETWORK')}"
|
2016-09-27 08:45:37 +00:00
|
|
|
params:
|
|
|
|
$NETWORK: {get_param: [ServiceNetMap, AodhApiNetwork]}
|
2016-08-25 09:22:08 -04:00
|
|
|
# NOTE: bind IP is found in Heat replacing the network name with the
|
|
|
|
# local node IP for the given network; replacement examples
|
|
|
|
# (eg. for internal_api):
|
|
|
|
# internal_api -> IP
|
|
|
|
# internal_api_uri -> [IP]
|
|
|
|
# internal_api_subnet - > IP/CIDR
|
|
|
|
aodh::wsgi::apache::bind_host: {get_param: [ServiceNetMap, AodhApiNetwork]}
|
2016-09-15 09:19:15 +02:00
|
|
|
service_config_settings:
|
2016-09-26 13:52:46 -04:00
|
|
|
get_attr: [AodhBase, role_data, service_config_settings]
|
2016-06-23 15:54:06 -04:00
|
|
|
step_config: |
|
|
|
|
include tripleo::profile::base::aodh::api
|
2016-12-15 16:20:40 +02:00
|
|
|
metadata_settings:
|
|
|
|
get_attr: [ApacheServiceBase, role_data, metadata_settings]
|
2016-12-01 10:06:34 +00:00
|
|
|
upgrade_tasks:
|
|
|
|
- name: Stop aodh_api service (running under httpd)
|
2017-02-24 22:31:29 +01:00
|
|
|
tags: step1
|
2016-12-01 10:06:34 +00:00
|
|
|
service: name=httpd state=stopped
|