Fix gnocchi::storage::ceph::ceph_keyring
[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       config_settings:
43         #Gnocchi engine
44         gnocchi::debug: {get_input: debug}
45         gnocchi::db::database_connection:
46           list_join:
47             - ''
48             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
49               - '://gnocchi:'
50               - {get_param: GnocchiPassword}
51               - '@'
52               - {get_param: [EndpointMap, MysqlInternal, host]}
53               - '/gnocchi'
54         gnocchi::keystone::auth::region: 'regionOne'
55         gnocchi::keystone::auth::tenant: 'service'
56         gnocchi::keystone::auth::password: {get_param: GnocchiPassword}
57         gnocchi::db::mysql::password: {get_param: GnocchiPassword}
58         gnocchi::db::sync::extra_opts: '--skip-storage --create-legacy-resource-types'
59         #Gnocchi API
60         tripleo::profile::base::gnocchi::api::gnocchi_backend: {get_param: GnocchiBackend}
61         gnocchi::api::manage_service: false
62         gnocchi::api::enabled: true
63         gnocchi::api::service_name: 'httpd'
64         gnocchi::api::keystone_tenant: 'service'
65         gnocchi::api::keystone_password: {get_param: GnocchiPassword}
66         gnocchi::wsgi::apache::ssl: false
67         gnocchi::storage::swift::swift_user: 'service:gnocchi'
68         gnocchi::storage::swift::swift_auth_version: 2
69         gnocchi::storage::swift::swift_key: {get_param: GnocchiPassword}
70         gnocchi::storage::ceph::ceph_pool: {get_param: GnocchiRbdPoolName}
71         gnocchi::storage::ceph::ceph_username: {get_param: CephClientUserName}
72         gnocchi::storage::ceph::ceph_keyring:
73           list_join:
74           - '.'
75           - - '/etc/ceph/ceph'
76             - 'client'
77             - {get_param: CephClientUserName}
78             - 'keyring'
79         #Gnocchi statsd
80         gnocchi::statsd::manage_service: false
81         gnocchi::statsd::resource_id: '0a8b55df-f90f-491c-8cb9-7cdecec6fc26'
82         gnocchi::statsd::user_id: '27c0d3f8-e7ee-42f0-8317-72237d1c5ae3'
83         gnocchi::statsd::project_id: '6c38cd8d-099a-4cb2-aecf-17be688e8616'
84         gnocchi::statsd::flush_delay: 10
85         gnocchi::statsd::archive_policy_name: 'low'
86         gnocchi::db::mysql::user: gnocchi
87         gnocchi::db::mysql::host: {get_param: [EndpointMap, MysqlVirtual, host]}
88         gnocchi::db::mysql::dbname: gnocchi
89         gnocchi::db::mysql::allowed_hosts:
90           - '%'
91           - "%{hiera('mysql_bind_host')}"