Use the make_url function to build URLs
[apex-tripleo-heat-templates.git] / puppet / services / gnocchi-base.yaml
1 heat_template_version: pike
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   MetricProcessingDelay:
26     default: 60
27     description: Delay between processing metrics.
28     type: number
29   GnocchiPassword:
30     description: The password for the gnocchi service and db account.
31     type: string
32     hidden: true
33   GnocchiRbdPoolName:
34     default: metrics
35     type: string
36   CephClientUserName:
37     default: openstack
38     type: string
39   RedisPassword:
40     description: The password for the redis service account.
41     type: string
42     hidden: true
43   Debug:
44     type: string
45     default: ''
46     description: Set to True to enable debugging on all services.
47
48 outputs:
49   aux_parameters:
50     description: Additional parameters referenced outside the base file
51     value:
52       gnocchi_indexer_backend: {get_param: GnocchiIndexerBackend}
53   role_data:
54     description: Shared role data for the Heat services.
55     value:
56       service_name: gnocchi_base
57       config_settings:
58         #Gnocchi engine
59         gnocchi_redis_password: {get_param: RedisPassword}
60         gnocchi::debug: {get_param: Debug}
61         gnocchi::db::database_connection:
62           make_url:
63             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
64             username: gnocchi
65             password: {get_param: GnocchiPassword}
66             host: {get_param: [EndpointMap, MysqlInternal, host]}
67             path: /gnocchi
68             query:
69               read_default_file: /etc/my.cnf.d/tripleo.cnf
70               read_default_group: tripleo
71         gnocchi::db::sync::extra_opts: '--skip-storage'
72         gnocchi::storage::metric_processing_delay: {get_param: MetricProcessingDelay}
73         gnocchi::storage::swift::swift_user: 'service:gnocchi'
74         gnocchi::storage::swift::swift_auth_version: 3
75         gnocchi::storage::swift::swift_key: {get_param: GnocchiPassword}
76         gnocchi::storage::swift::swift_authurl: {get_param: [EndpointMap, KeystoneV3Internal, uri]}
77         gnocchi::storage::ceph::ceph_pool: {get_param: GnocchiRbdPoolName}
78         gnocchi::storage::ceph::ceph_username: {get_param: CephClientUserName}
79         gnocchi::storage::ceph::ceph_keyring:
80           list_join:
81           - '.'
82           - - '/etc/ceph/ceph'
83             - 'client'
84             - {get_param: CephClientUserName}
85             - 'keyring'
86         #Gnocchi statsd
87         gnocchi::statsd::resource_id: '0a8b55df-f90f-491c-8cb9-7cdecec6fc26'
88         gnocchi::statsd::user_id: '27c0d3f8-e7ee-42f0-8317-72237d1c5ae3'
89         gnocchi::statsd::project_id: '6c38cd8d-099a-4cb2-aecf-17be688e8616'
90         gnocchi::statsd::flush_delay: 10
91         gnocchi::statsd::archive_policy_name: 'low'