Change flat network name for nosdn fdio scenario
[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   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   GnocchiIndexerBackend:
34     default: 'mysql'
35     description: The short name of the Gnocchi indexer backend to use.
36     type: string
37   MetricProcessingDelay:
38     default: 30
39     description: Delay between processing metrics.
40     type: number
41   NumberOfStorageSacks:
42     default: 128
43     description: Number of storage sacks to create.
44     type: number
45   GnocchiPassword:
46     description: The password for the gnocchi service and db account.
47     type: string
48     hidden: true
49   GnocchiRbdPoolName:
50     default: metrics
51     type: string
52   CephClientUserName:
53     default: openstack
54     type: string
55   RedisPassword:
56     description: The password for the redis service account.
57     type: string
58     hidden: true
59   Debug:
60     type: string
61     default: ''
62     description: Set to True to enable debugging on all services.
63   GnocchiDebug:
64     default: ''
65     description: Set to True to enable debugging Gnocchi services.
66     type: string
67
68 conditions:
69   service_debug_unset: {equals : [{get_param: GnocchiDebug}, '']}
70
71 outputs:
72   aux_parameters:
73     description: Additional parameters referenced outside the base file
74     value:
75       gnocchi_indexer_backend: {get_param: GnocchiIndexerBackend}
76   role_data:
77     description: Shared role data for the Heat services.
78     value:
79       service_name: gnocchi_base
80       config_settings:
81         #Gnocchi engine
82         gnocchi_redis_password: {get_param: RedisPassword}
83         gnocchi::debug:
84           if:
85           - service_debug_unset
86           - {get_param: Debug }
87           - {get_param: GnocchiDebug }
88         gnocchi::db::database_connection:
89           make_url:
90             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
91             username: gnocchi
92             password: {get_param: GnocchiPassword}
93             host: {get_param: [EndpointMap, MysqlInternal, host]}
94             path: /gnocchi
95             query:
96               read_default_file: /etc/my.cnf.d/tripleo.cnf
97               read_default_group: tripleo
98         gnocchi::db::sync::extra_opts:
99           str_replace:
100             template: " --sacks-number NUM_SACKS"
101             params:
102               NUM_SACKS: {get_param: NumberOfStorageSacks}
103         gnocchi::storage::metric_processing_delay: {get_param: MetricProcessingDelay}
104         gnocchi::storage::swift::swift_user: 'service:gnocchi'
105         gnocchi::storage::swift::swift_auth_version: 3
106         gnocchi::storage::swift::swift_key: {get_param: GnocchiPassword}
107         gnocchi::storage::swift::swift_authurl: {get_param: [EndpointMap, KeystoneV3Internal, uri]}
108         gnocchi::storage::ceph::ceph_pool: {get_param: GnocchiRbdPoolName}
109         gnocchi::storage::ceph::ceph_username: {get_param: CephClientUserName}
110         gnocchi::storage::ceph::ceph_keyring:
111           list_join:
112           - '.'
113           - - '/etc/ceph/ceph'
114             - 'client'
115             - {get_param: CephClientUserName}
116             - 'keyring'
117         #Gnocchi statsd
118         gnocchi::statsd::resource_id: '0a8b55df-f90f-491c-8cb9-7cdecec6fc26'
119         gnocchi::statsd::user_id: '27c0d3f8-e7ee-42f0-8317-72237d1c5ae3'
120         gnocchi::statsd::project_id: '6c38cd8d-099a-4cb2-aecf-17be688e8616'
121         gnocchi::statsd::flush_delay: 10
122         gnocchi::statsd::archive_policy_name: 'low'