fa00f736e89a9d182a1f77241fa5256cfcf99b48
[apex-tripleo-heat-templates.git] / puppet / services / gnocchi-base.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   Gnocchi service configured with Puppet
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   GnocchiBackend:
13     default: file
14     description: The short name of the Gnocchi backend to use. Should be one
15       of swift, rbd, or file
16     type: string
17     constraints:
18     - allowed_values: ['swift', 'file', 'rbd']
19   GnocchiIndexerBackend:
20     default: 'mysql'
21     description: The short name of the Gnocchi indexer backend to use.
22     type: string
23   GnocchiPassword:
24     description: The password for the gnocchi service and db account.
25     type: string
26     hidden: true
27   GnocchiRbdPoolName:
28     default: metrics
29     type: string
30   CephClientUserName:
31     default: openstack
32     type: string
33
34 outputs:
35   aux_parameters:
36     description: Additional parameters referenced outside the base file
37     value:
38       gnocchi_indexer_backend: {get_param: GnocchiIndexerBackend}
39   role_data:
40     description: Shared role data for the Heat services.
41     value:
42       service_name: gnocchi-base
43       config_settings:
44         #Gnocchi engine
45         gnocchi::debug: {get_input: debug}
46         gnocchi::db::database_connection:
47           list_join:
48             - ''
49             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
50               - '://gnocchi:'
51               - {get_param: GnocchiPassword}
52               - '@'
53               - {get_param: [EndpointMap, MysqlInternal, host]}
54               - '/gnocchi'
55         gnocchi::keystone::auth::region: 'regionOne'
56         gnocchi::keystone::auth::tenant: 'service'
57         gnocchi::keystone::auth::password: {get_param: GnocchiPassword}
58         gnocchi::db::mysql::password: {get_param: GnocchiPassword}
59         gnocchi::db::sync::extra_opts: '--skip-storage --create-legacy-resource-types'
60         #Gnocchi API
61         tripleo::profile::base::gnocchi::api::gnocchi_backend: {get_param: GnocchiBackend}
62         gnocchi::api::manage_service: false
63         gnocchi::api::enabled: true
64         gnocchi::api::service_name: 'httpd'
65         gnocchi::api::keystone_tenant: 'service'
66         gnocchi::api::keystone_password: {get_param: GnocchiPassword}
67         gnocchi::wsgi::apache::ssl: false
68         gnocchi::storage::swift::swift_user: 'service:gnocchi'
69         gnocchi::storage::swift::swift_auth_version: 2
70         gnocchi::storage::swift::swift_key: {get_param: GnocchiPassword}
71         gnocchi::storage::ceph::ceph_pool: {get_param: GnocchiRbdPoolName}
72         gnocchi::storage::ceph::ceph_username: {get_param: CephClientUserName}
73         gnocchi::storage::ceph::ceph_keyring:
74           list_join:
75           - '.'
76           - - '/etc/ceph/ceph'
77             - 'client'
78             - {get_param: CephClientUserName}
79             - 'keyring'
80         #Gnocchi statsd
81         gnocchi::statsd::manage_service: false
82         gnocchi::statsd::resource_id: '0a8b55df-f90f-491c-8cb9-7cdecec6fc26'
83         gnocchi::statsd::user_id: '27c0d3f8-e7ee-42f0-8317-72237d1c5ae3'
84         gnocchi::statsd::project_id: '6c38cd8d-099a-4cb2-aecf-17be688e8616'
85         gnocchi::statsd::flush_delay: 10
86         gnocchi::statsd::archive_policy_name: 'low'
87         gnocchi::db::mysql::user: gnocchi
88         gnocchi::db::mysql::host: {get_param: [EndpointMap, MysqlNoBracketsInternal, host]}
89         gnocchi::db::mysql::dbname: gnocchi
90         gnocchi::db::mysql::allowed_hosts:
91           - '%'
92           - "%{hiera('mysql_bind_host')}"