Merge "Disable core dump for setuid programs"
[apex-tripleo-heat-templates.git] / puppet / services / gnocchi-base.yaml
1 heat_template_version: ocata
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   RedisPassword:
36     description: The password for the redis service account.
37     type: string
38     hidden: true
39   Debug:
40     type: string
41     default: ''
42     description: Set to True to enable debugging on all services.
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_redis_password: {get_param: RedisPassword}
56         gnocchi::debug: {get_param: Debug}
57         gnocchi::db::database_connection:
58           list_join:
59             - ''
60             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
61               - '://gnocchi:'
62               - {get_param: GnocchiPassword}
63               - '@'
64               - {get_param: [EndpointMap, MysqlInternal, host]}
65               - '/gnocchi'
66               - '?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo'
67         gnocchi::db::sync::extra_opts: '--skip-storage'
68         gnocchi::storage::swift::swift_user: 'service:gnocchi'
69         gnocchi::storage::swift::swift_auth_version: 3
70         gnocchi::storage::swift::swift_key: {get_param: GnocchiPassword}
71         gnocchi::storage::swift::swift_authurl: {get_param: [EndpointMap, KeystoneV3Internal, uri]}
72         gnocchi::storage::ceph::ceph_pool: {get_param: GnocchiRbdPoolName}
73         gnocchi::storage::ceph::ceph_username: {get_param: CephClientUserName}
74         gnocchi::storage::ceph::ceph_keyring:
75           list_join:
76           - '.'
77           - - '/etc/ceph/ceph'
78             - 'client'
79             - {get_param: CephClientUserName}
80             - 'keyring'
81         #Gnocchi statsd
82         gnocchi::statsd::resource_id: '0a8b55df-f90f-491c-8cb9-7cdecec6fc26'
83         gnocchi::statsd::user_id: '27c0d3f8-e7ee-42f0-8317-72237d1c5ae3'
84         gnocchi::statsd::project_id: '6c38cd8d-099a-4cb2-aecf-17be688e8616'
85         gnocchi::statsd::flush_delay: 10
86         gnocchi::statsd::archive_policy_name: 'low'