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