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