Merge "Containerize HAProxy for the non-ha case"
[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   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29   GnocchiIndexerBackend:
30     default: 'mysql'
31     description: The short name of the Gnocchi indexer backend to use.
32     type: string
33   MetricProcessingDelay:
34     default: 30
35     description: Delay between processing metrics.
36     type: number
37   GnocchiPassword:
38     description: The password for the gnocchi service and db account.
39     type: string
40     hidden: true
41   GnocchiRbdPoolName:
42     default: metrics
43     type: string
44   CephClientUserName:
45     default: openstack
46     type: string
47   RedisPassword:
48     description: The password for the redis service account.
49     type: string
50     hidden: true
51   Debug:
52     type: string
53     default: ''
54     description: Set to True to enable debugging on all services.
55
56 outputs:
57   aux_parameters:
58     description: Additional parameters referenced outside the base file
59     value:
60       gnocchi_indexer_backend: {get_param: GnocchiIndexerBackend}
61   role_data:
62     description: Shared role data for the Heat services.
63     value:
64       service_name: gnocchi_base
65       config_settings:
66         #Gnocchi engine
67         gnocchi_redis_password: {get_param: RedisPassword}
68         gnocchi::debug: {get_param: Debug}
69         gnocchi::db::database_connection:
70           make_url:
71             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
72             username: gnocchi
73             password: {get_param: GnocchiPassword}
74             host: {get_param: [EndpointMap, MysqlInternal, host]}
75             path: /gnocchi
76             query:
77               read_default_file: /etc/my.cnf.d/tripleo.cnf
78               read_default_group: tripleo
79         gnocchi::db::sync::extra_opts: ''
80         gnocchi::storage::metric_processing_delay: {get_param: MetricProcessingDelay}
81         gnocchi::storage::swift::swift_user: 'service:gnocchi'
82         gnocchi::storage::swift::swift_auth_version: 3
83         gnocchi::storage::swift::swift_key: {get_param: GnocchiPassword}
84         gnocchi::storage::swift::swift_authurl: {get_param: [EndpointMap, KeystoneV3Internal, uri]}
85         gnocchi::storage::ceph::ceph_pool: {get_param: GnocchiRbdPoolName}
86         gnocchi::storage::ceph::ceph_username: {get_param: CephClientUserName}
87         gnocchi::storage::ceph::ceph_keyring:
88           list_join:
89           - '.'
90           - - '/etc/ceph/ceph'
91             - 'client'
92             - {get_param: CephClientUserName}
93             - 'keyring'
94         #Gnocchi statsd
95         gnocchi::statsd::resource_id: '0a8b55df-f90f-491c-8cb9-7cdecec6fc26'
96         gnocchi::statsd::user_id: '27c0d3f8-e7ee-42f0-8317-72237d1c5ae3'
97         gnocchi::statsd::project_id: '6c38cd8d-099a-4cb2-aecf-17be688e8616'
98         gnocchi::statsd::flush_delay: 10
99         gnocchi::statsd::archive_policy_name: 'low'