1 heat_template_version: ocata
4 Gnocchi 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: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
22 description: The password for the gnocchi service and db account.
27 description: The short name of the Gnocchi backend to use. Should be one
28 of swift, rbd, or file
31 - allowed_values: ['swift', 'file', 'rbd']
35 description: Keystone region for endpoint
36 MonitoringSubscriptionGnocchiApi:
37 default: 'overcloud-gnocchi-api'
39 GnocchiApiLoggingSource:
42 tag: openstack.gnocchi.api
43 path: /var/log/gnocchi/app.log
51 type: ./gnocchi-base.yaml
53 ServiceNetMap: {get_param: ServiceNetMap}
54 DefaultPasswords: {get_param: DefaultPasswords}
55 EndpointMap: {get_param: EndpointMap}
60 ServiceNetMap: {get_param: ServiceNetMap}
61 DefaultPasswords: {get_param: DefaultPasswords}
62 EndpointMap: {get_param: EndpointMap}
63 EnableInternalTLS: {get_param: EnableInternalTLS}
67 description: Role data for the Gnocchi role.
69 service_name: gnocchi_api
70 monitoring_subscription: {get_param: MonitoringSubscriptionGnocchiApi}
71 logging_source: {get_param: GnocchiApiLoggingSource}
76 - get_attr: [ApacheServiceBase, role_data, config_settings]
77 - get_attr: [GnocchiServiceBase, role_data, config_settings]
78 - tripleo.gnocchi_api.firewall_rules:
83 gnocchi::api::enabled: true
84 gnocchi::api::enable_proxy_headers_parsing: true
85 gnocchi::api::service_name: 'httpd'
86 gnocchi::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
87 gnocchi::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
88 gnocchi::keystone::authtoken::password: {get_param: GnocchiPassword}
89 gnocchi::keystone::authtoken::project_name: 'service'
90 gnocchi::keystone::authtoken::user_domain_name: 'Default'
91 gnocchi::keystone::authtoken::project_domain_name: 'Default'
92 gnocchi::wsgi::apache::ssl: {get_param: EnableInternalTLS}
93 gnocchi::wsgi::apache::servername:
96 "%{hiera('fqdn_$NETWORK')}"
98 $NETWORK: {get_param: [ServiceNetMap, GnocchiApiNetwork]}
99 tripleo::profile::base::gnocchi::api::gnocchi_backend: {get_param: GnocchiBackend}
100 # NOTE: bind IP is found in Heat replacing the network name with the
101 # local node IP for the given network; replacement examples
102 # (eg. for internal_api):
104 # internal_api_uri -> [IP]
105 # internal_api_subnet - > IP/CIDR
106 gnocchi::wsgi::apache::bind_host: {get_param: [ServiceNetMap, GnocchiApiNetwork]}
107 gnocchi::wsgi::apache::wsgi_process_display_name: 'gnocchi_wsgi'
109 include ::tripleo::profile::base::gnocchi::api
110 service_config_settings:
112 gnocchi::keystone::auth::admin_url: { get_param: [ EndpointMap, GnocchiAdmin, uri ] }
113 gnocchi::keystone::auth::internal_url: {get_param: [EndpointMap, GnocchiInternal, uri]}
114 gnocchi::keystone::auth::password: {get_param: GnocchiPassword}
115 gnocchi::keystone::auth::public_url: { get_param: [ EndpointMap, GnocchiPublic, uri ] }
116 gnocchi::keystone::auth::region: {get_param: KeystoneRegion}
117 gnocchi::keystone::auth::tenant: 'service'
119 gnocchi::db::mysql::password: {get_param: GnocchiPassword}
120 gnocchi::db::mysql::user: gnocchi
121 gnocchi::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
122 gnocchi::db::mysql::dbname: gnocchi
123 gnocchi::db::mysql::allowed_hosts:
125 - "%{hiera('mysql_bind_host')}"
127 get_attr: [ApacheServiceBase, role_data, metadata_settings]
129 - name: Stop gnocchi_api service (running under httpd)
131 service: name=httpd state=stopped