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
49 A hash of policies to configure for Gnocchi API.
50 e.g. { gnocchi-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
57 type: ./gnocchi-base.yaml
59 ServiceNetMap: {get_param: ServiceNetMap}
60 DefaultPasswords: {get_param: DefaultPasswords}
61 EndpointMap: {get_param: EndpointMap}
66 ServiceNetMap: {get_param: ServiceNetMap}
67 DefaultPasswords: {get_param: DefaultPasswords}
68 EndpointMap: {get_param: EndpointMap}
69 EnableInternalTLS: {get_param: EnableInternalTLS}
73 description: Role data for the Gnocchi role.
75 service_name: gnocchi_api
76 monitoring_subscription: {get_param: MonitoringSubscriptionGnocchiApi}
77 logging_source: {get_param: GnocchiApiLoggingSource}
82 - get_attr: [ApacheServiceBase, role_data, config_settings]
83 - get_attr: [GnocchiServiceBase, role_data, config_settings]
84 - tripleo.gnocchi_api.firewall_rules:
89 gnocchi::api::enabled: true
90 gnocchi::api::enable_proxy_headers_parsing: true
91 gnocchi::api::service_name: 'httpd'
92 gnocchi::policy::policies: {get_param: GnocchiApiPolicies}
93 gnocchi::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
94 gnocchi::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
95 gnocchi::keystone::authtoken::password: {get_param: GnocchiPassword}
96 gnocchi::keystone::authtoken::project_name: 'service'
97 gnocchi::keystone::authtoken::user_domain_name: 'Default'
98 gnocchi::keystone::authtoken::project_domain_name: 'Default'
99 gnocchi::wsgi::apache::ssl: {get_param: EnableInternalTLS}
100 gnocchi::wsgi::apache::servername:
103 "%{hiera('fqdn_$NETWORK')}"
105 $NETWORK: {get_param: [ServiceNetMap, GnocchiApiNetwork]}
106 tripleo::profile::base::gnocchi::api::gnocchi_backend: {get_param: GnocchiBackend}
107 # NOTE: bind IP is found in Heat replacing the network name with the
108 # local node IP for the given network; replacement examples
109 # (eg. for internal_api):
111 # internal_api_uri -> [IP]
112 # internal_api_subnet - > IP/CIDR
113 gnocchi::wsgi::apache::bind_host: {get_param: [ServiceNetMap, GnocchiApiNetwork]}
114 gnocchi::wsgi::apache::wsgi_process_display_name: 'gnocchi_wsgi'
116 include ::tripleo::profile::base::gnocchi::api
117 service_config_settings:
119 gnocchi::keystone::auth::admin_url: { get_param: [ EndpointMap, GnocchiAdmin, uri ] }
120 gnocchi::keystone::auth::internal_url: {get_param: [EndpointMap, GnocchiInternal, uri]}
121 gnocchi::keystone::auth::password: {get_param: GnocchiPassword}
122 gnocchi::keystone::auth::public_url: { get_param: [ EndpointMap, GnocchiPublic, uri ] }
123 gnocchi::keystone::auth::region: {get_param: KeystoneRegion}
124 gnocchi::keystone::auth::tenant: 'service'
126 gnocchi::db::mysql::password: {get_param: GnocchiPassword}
127 gnocchi::db::mysql::user: gnocchi
128 gnocchi::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
129 gnocchi::db::mysql::dbname: gnocchi
130 gnocchi::db::mysql::allowed_hosts:
132 - "%{hiera('mysql_bind_host')}"
134 get_attr: [ApacheServiceBase, role_data, metadata_settings]
137 expression: $.data.apache_upgrade + $.data.gnocchi_api_upgrade
140 get_attr: [ApacheServiceBase, role_data, upgrade_tasks]
142 - name: Stop gnocchi_api service (running under httpd)
144 service: name=httpd state=stopped