844d1469918c9b038cdae65cc1d70ab161706146
[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   GnocchiIndexerBackend:
13     default: 'mysql'
14     description: The short name of the Gnocchi indexer backend to use.
15     type: string
16   GnocchiPassword:
17     description: The password for the gnocchi service and db account.
18     type: string
19     hidden: true
20   GnocchiRbdPoolName:
21     default: metrics
22     type: string
23   CephClientUserName:
24     default: openstack
25     type: string
26   KeystoneRegion:
27     type: string
28     default: 'regionOne'
29     description: Keystone region for endpoint
30   RedisPassword:
31     description: The password for the redis service account.
32     type: string
33     hidden: true
34
35 outputs:
36   aux_parameters:
37     description: Additional parameters referenced outside the base file
38     value:
39       gnocchi_indexer_backend: {get_param: GnocchiIndexerBackend}
40   role_data:
41     description: Shared role data for the Heat services.
42     value:
43       service_name: gnocchi_base
44       config_settings:
45         #Gnocchi engine
46         gnocchi::debug: {get_input: debug}
47         gnocchi::db::database_connection:
48           list_join:
49             - ''
50             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
51               - '://gnocchi:'
52               - {get_param: GnocchiPassword}
53               - '@'
54               - {get_param: [EndpointMap, MysqlInternal, host]}
55               - '/gnocchi'
56         gnocchi::db::mysql::password: {get_param: GnocchiPassword}
57         gnocchi::db::sync::extra_opts: '--skip-storage --create-legacy-resource-types'
58         gnocchi::storage::coordination_url:
59           list_join:
60             - ''
61             - - 'redis://:'
62               - {get_param: RedisPassword}
63               - '@'
64               - "%{hiera('redis_vip')}"
65               - ':6379/'
66         gnocchi::storage::swift::swift_user: 'service:gnocchi'
67         gnocchi::storage::swift::swift_auth_version: 2
68         gnocchi::storage::swift::swift_key: {get_param: GnocchiPassword}
69         gnocchi::storage::ceph::ceph_pool: {get_param: GnocchiRbdPoolName}
70         gnocchi::storage::ceph::ceph_username: {get_param: CephClientUserName}
71         gnocchi::storage::ceph::ceph_keyring:
72           list_join:
73           - '.'
74           - - '/etc/ceph/ceph'
75             - 'client'
76             - {get_param: CephClientUserName}
77             - 'keyring'
78         #Gnocchi statsd
79         gnocchi::statsd::manage_service: false
80         gnocchi::statsd::resource_id: '0a8b55df-f90f-491c-8cb9-7cdecec6fc26'
81         gnocchi::statsd::user_id: '27c0d3f8-e7ee-42f0-8317-72237d1c5ae3'
82         gnocchi::statsd::project_id: '6c38cd8d-099a-4cb2-aecf-17be688e8616'
83         gnocchi::statsd::flush_delay: 10
84         gnocchi::statsd::archive_policy_name: 'low'
85         gnocchi::db::mysql::user: gnocchi
86         gnocchi::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
87         gnocchi::db::mysql::dbname: gnocchi
88         gnocchi::db::mysql::allowed_hosts:
89           - '%'
90           - "%{hiera('mysql_bind_host')}"