1 heat_template_version: pike
4 OpenStack Aodh API service configured with Puppet
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.
18 description: Role name on which the service is applied
22 description: Parameters specific to the role
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
29 MonitoringSubscriptionAodhApi:
30 default: 'overcloud-ceilometer-aodh-api'
37 A hash of policies to configure for Aodh API.
38 e.g. { aodh-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
44 type: ./aodh-base.yaml
46 ServiceNetMap: {get_param: ServiceNetMap}
47 DefaultPasswords: {get_param: DefaultPasswords}
48 EndpointMap: {get_param: EndpointMap}
49 RoleName: {get_param: RoleName}
50 RoleParameters: {get_param: RoleParameters}
55 ServiceNetMap: {get_param: ServiceNetMap}
56 DefaultPasswords: {get_param: DefaultPasswords}
57 EndpointMap: {get_param: EndpointMap}
58 RoleName: {get_param: RoleName}
59 RoleParameters: {get_param: RoleParameters}
60 EnableInternalTLS: {get_param: EnableInternalTLS}
64 description: Role data for the Aodh API service.
66 service_name: aodh_api
67 monitoring_subscription: {get_param: MonitoringSubscriptionAodhApi}
70 - get_attr: [AodhBase, role_data, config_settings]
71 - get_attr: [ApacheServiceBase, role_data, config_settings]
72 - aodh::wsgi::apache::ssl: {get_param: EnableInternalTLS}
73 aodh::wsgi::apache::servername:
76 "%{hiera('fqdn_$NETWORK')}"
78 $NETWORK: {get_param: [ServiceNetMap, AodhApiNetwork]}
79 aodh::wsgi::apache::wsgi_process_display_name: 'aodh_wsgi'
80 aodh::api::service_name: 'httpd'
81 aodh::api::enable_proxy_headers_parsing: true
82 aodh::policy::policies: {get_param: AodhApiPolicies}
83 tripleo.aodh_api.firewall_rules:
91 "%{hiera('fqdn_$NETWORK')}"
93 $NETWORK: {get_param: [ServiceNetMap, AodhApiNetwork]}
94 # NOTE: bind IP is found in Heat replacing the network name with the
95 # local node IP for the given network; replacement examples
96 # (eg. for internal_api):
98 # internal_api_uri -> [IP]
99 # internal_api_subnet - > IP/CIDR
100 aodh::wsgi::apache::bind_host: {get_param: [ServiceNetMap, AodhApiNetwork]}
101 service_config_settings:
102 get_attr: [AodhBase, role_data, service_config_settings]
104 include tripleo::profile::base::aodh::api
106 get_attr: [ApacheServiceBase, role_data, metadata_settings]
109 expression: $.data.apache_upgrade + $.data.aodh_api_upgrade
112 get_attr: [ApacheServiceBase, role_data, upgrade_tasks]
114 - name: Stop aodh_api service (running under httpd)
116 service: name=httpd state=stopped