2017-02-17 11:12:36 +01:00
|
|
|
heat_template_version: pike
|
2016-05-18 22:26:22 -04:00
|
|
|
|
|
|
|
description: >
|
|
|
|
Gnocchi 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
|
2017-02-24 06:27:58 -05:00
|
|
|
RoleName:
|
|
|
|
default: ''
|
|
|
|
description: Role name on which the service is applied
|
|
|
|
type: string
|
|
|
|
RoleParameters:
|
|
|
|
default: {}
|
|
|
|
description: Parameters specific to the role
|
|
|
|
type: json
|
2016-05-18 22:26:22 -04:00
|
|
|
EndpointMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
|
|
via parameter_defaults in the resource registry.
|
|
|
|
type: json
|
2016-08-08 13:40:23 +03:00
|
|
|
GnocchiPassword:
|
|
|
|
description: The password for the gnocchi service and db account.
|
|
|
|
type: string
|
|
|
|
hidden: true
|
2016-08-15 14:05:20 -04:00
|
|
|
GnocchiBackend:
|
2016-08-11 16:43:17 -04:00
|
|
|
default: swift
|
2016-08-15 14:05:20 -04:00
|
|
|
description: The short name of the Gnocchi backend to use. Should be one
|
|
|
|
of swift, rbd, or file
|
|
|
|
type: string
|
|
|
|
constraints:
|
|
|
|
- allowed_values: ['swift', 'file', 'rbd']
|
2016-08-08 13:40:23 +03:00
|
|
|
KeystoneRegion:
|
|
|
|
type: string
|
|
|
|
default: 'regionOne'
|
|
|
|
description: Keystone region for endpoint
|
2016-06-09 15:39:22 +02:00
|
|
|
MonitoringSubscriptionGnocchiApi:
|
|
|
|
default: 'overcloud-gnocchi-api'
|
|
|
|
type: string
|
2016-08-09 16:20:18 -04:00
|
|
|
GnocchiApiLoggingSource:
|
|
|
|
type: json
|
|
|
|
default:
|
|
|
|
tag: openstack.gnocchi.api
|
|
|
|
path: /var/log/gnocchi/app.log
|
2016-09-27 08:59:40 +00:00
|
|
|
EnableInternalTLS:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2017-03-14 21:09:11 -04:00
|
|
|
GnocchiApiPolicies:
|
|
|
|
description: |
|
|
|
|
A hash of policies to configure for Gnocchi API.
|
|
|
|
e.g. { gnocchi-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
|
|
|
|
default: {}
|
|
|
|
type: json
|
2016-05-18 22:26:22 -04:00
|
|
|
|
|
|
|
resources:
|
2016-08-26 12:41:53 -04:00
|
|
|
|
2016-05-18 22:26:22 -04:00
|
|
|
GnocchiServiceBase:
|
|
|
|
type: ./gnocchi-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-05-18 22:26:22 -04:00
|
|
|
EndpointMap: {get_param: EndpointMap}
|
2017-02-24 06:27:58 -05:00
|
|
|
RoleName: {get_param: RoleName}
|
|
|
|
RoleParameters: {get_param: RoleParameters}
|
2016-05-18 22:26:22 -04:00
|
|
|
|
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}
|
2017-02-24 06:27:58 -05:00
|
|
|
RoleName: {get_param: RoleName}
|
|
|
|
RoleParameters: {get_param: RoleParameters}
|
2016-09-27 08:59:40 +00:00
|
|
|
EnableInternalTLS: {get_param: EnableInternalTLS}
|
2016-08-26 12:41:53 -04:00
|
|
|
|
2016-05-18 22:26:22 -04:00
|
|
|
outputs:
|
|
|
|
role_data:
|
|
|
|
description: Role data for the Gnocchi role.
|
|
|
|
value:
|
2016-07-28 10:30:10 +01:00
|
|
|
service_name: gnocchi_api
|
2016-06-09 15:39:22 +02:00
|
|
|
monitoring_subscription: {get_param: MonitoringSubscriptionGnocchiApi}
|
2016-08-09 16:20:18 -04:00
|
|
|
logging_source: {get_param: GnocchiApiLoggingSource}
|
|
|
|
logging_groups:
|
|
|
|
- gnocchi
|
2016-05-18 22:26:22 -04:00
|
|
|
config_settings:
|
|
|
|
map_merge:
|
2016-08-26 12:41:53 -04:00
|
|
|
- get_attr: [ApacheServiceBase, role_data, config_settings]
|
2016-05-18 22:26:22 -04:00
|
|
|
- get_attr: [GnocchiServiceBase, role_data, config_settings]
|
2016-07-20 10:48:23 -04:00
|
|
|
- tripleo.gnocchi_api.firewall_rules:
|
|
|
|
'129 gnocchi-api':
|
|
|
|
dport:
|
|
|
|
- 8041
|
|
|
|
- 13041
|
2016-08-15 14:05:20 -04:00
|
|
|
gnocchi::api::enabled: true
|
2016-10-13 08:57:37 +03:00
|
|
|
gnocchi::api::enable_proxy_headers_parsing: true
|
2016-08-15 14:05:20 -04:00
|
|
|
gnocchi::api::service_name: 'httpd'
|
2017-03-14 21:09:11 -04:00
|
|
|
gnocchi::policy::policies: {get_param: GnocchiApiPolicies}
|
2017-03-07 16:18:50 -05:00
|
|
|
gnocchi::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
|
2017-02-10 20:47:13 +02:00
|
|
|
gnocchi::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
|
2016-08-15 14:05:20 -04:00
|
|
|
gnocchi::keystone::authtoken::password: {get_param: GnocchiPassword}
|
|
|
|
gnocchi::keystone::authtoken::project_name: 'service'
|
2017-03-07 16:18:50 -05:00
|
|
|
gnocchi::keystone::authtoken::user_domain_name: 'Default'
|
|
|
|
gnocchi::keystone::authtoken::project_domain_name: 'Default'
|
2016-09-27 08:59:40 +00:00
|
|
|
gnocchi::wsgi::apache::ssl: {get_param: EnableInternalTLS}
|
2016-09-05 14:39:04 +03:00
|
|
|
gnocchi::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, GnocchiApiNetwork]}
|
2016-08-15 14:05:20 -04:00
|
|
|
tripleo::profile::base::gnocchi::api::gnocchi_backend: {get_param: GnocchiBackend}
|
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
|
|
|
|
gnocchi::wsgi::apache::bind_host: {get_param: [ServiceNetMap, GnocchiApiNetwork]}
|
2016-12-20 11:12:46 -05:00
|
|
|
gnocchi::wsgi::apache::wsgi_process_display_name: 'gnocchi_wsgi'
|
2016-05-18 22:26:22 -04:00
|
|
|
step_config: |
|
|
|
|
include ::tripleo::profile::base::gnocchi::api
|
2016-09-15 09:19:15 +02:00
|
|
|
service_config_settings:
|
|
|
|
keystone:
|
|
|
|
gnocchi::keystone::auth::admin_url: { get_param: [ EndpointMap, GnocchiAdmin, uri ] }
|
|
|
|
gnocchi::keystone::auth::internal_url: {get_param: [EndpointMap, GnocchiInternal, uri]}
|
|
|
|
gnocchi::keystone::auth::password: {get_param: GnocchiPassword}
|
|
|
|
gnocchi::keystone::auth::public_url: { get_param: [ EndpointMap, GnocchiPublic, uri ] }
|
|
|
|
gnocchi::keystone::auth::region: {get_param: KeystoneRegion}
|
|
|
|
gnocchi::keystone::auth::tenant: 'service'
|
2016-09-26 13:52:46 -04:00
|
|
|
mysql:
|
|
|
|
gnocchi::db::mysql::password: {get_param: GnocchiPassword}
|
|
|
|
gnocchi::db::mysql::user: gnocchi
|
|
|
|
gnocchi::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
|
|
|
|
gnocchi::db::mysql::dbname: gnocchi
|
|
|
|
gnocchi::db::mysql::allowed_hosts:
|
|
|
|
- '%'
|
|
|
|
- "%{hiera('mysql_bind_host')}"
|
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:
|
2017-04-26 15:56:41 -04:00
|
|
|
yaql:
|
|
|
|
expression: $.data.apache_upgrade + $.data.gnocchi_api_upgrade
|
|
|
|
data:
|
|
|
|
apache_upgrade:
|
|
|
|
get_attr: [ApacheServiceBase, role_data, upgrade_tasks]
|
|
|
|
gnocchi_api_upgrade:
|
|
|
|
- name: Stop gnocchi_api service (running under httpd)
|
|
|
|
tags: step1
|
|
|
|
service: name=httpd state=stopped
|