Merge "Remove unneeded net_ip_map dump into hieradata"
[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   RedisPassword:
38     description: The password for the redis service account.
39     type: string
40     hidden: true
41
42 outputs:
43   aux_parameters:
44     description: Additional parameters referenced outside the base file
45     value:
46       gnocchi_indexer_backend: {get_param: GnocchiIndexerBackend}
47   role_data:
48     description: Shared role data for the Heat services.
49     value:
50       service_name: gnocchi_base
51       config_settings:
52         #Gnocchi engine
53         gnocchi::debug: {get_input: debug}
54         gnocchi::db::database_connection:
55           list_join:
56             - ''
57             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
58               - '://gnocchi:'
59               - {get_param: GnocchiPassword}
60               - '@'
61               - {get_param: [EndpointMap, MysqlInternal, host]}
62               - '/gnocchi'
63         gnocchi::db::mysql::password: {get_param: GnocchiPassword}
64         gnocchi::db::sync::extra_opts: '--skip-storage --create-legacy-resource-types'
65         #Gnocchi API
66         tripleo::profile::base::gnocchi::api::gnocchi_backend: {get_param: GnocchiBackend}
67         gnocchi::api::manage_service: false
68         gnocchi::api::enabled: true
69         gnocchi::api::service_name: 'httpd'
70         gnocchi::api::keystone_password: {get_param: GnocchiPassword}
71         gnocchi::wsgi::apache::ssl: false
72         gnocchi::storage::coordination_url:
73           list_join:
74             - ''
75             - - 'redis://:'
76               - {get_param: RedisPassword}
77               - '@'
78               - "%{hiera('redis_vip')}"
79               - ':6379/'
80         gnocchi::storage::swift::swift_user: 'service:gnocchi'
81         gnocchi::storage::swift::swift_auth_version: 2
82         gnocchi::storage::swift::swift_key: {get_param: GnocchiPassword}
83         gnocchi::storage::ceph::ceph_pool: {get_param: GnocchiRbdPoolName}
84         gnocchi::storage::ceph::ceph_username: {get_param: CephClientUserName}
85         gnocchi::storage::ceph::ceph_keyring:
86           list_join:
87           - '.'
88           - - '/etc/ceph/ceph'
89             - 'client'
90             - {get_param: CephClientUserName}
91             - 'keyring'
92         #Gnocchi statsd
93         gnocchi::statsd::manage_service: false
94         gnocchi::statsd::resource_id: '0a8b55df-f90f-491c-8cb9-7cdecec6fc26'
95         gnocchi::statsd::user_id: '27c0d3f8-e7ee-42f0-8317-72237d1c5ae3'
96         gnocchi::statsd::project_id: '6c38cd8d-099a-4cb2-aecf-17be688e8616'
97         gnocchi::statsd::flush_delay: 10
98         gnocchi::statsd::archive_policy_name: 'low'
99         gnocchi::db::mysql::user: gnocchi
100         gnocchi::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
101         gnocchi::db::mysql::dbname: gnocchi
102         gnocchi::db::mysql::allowed_hosts:
103           - '%'
104           - "%{hiera('mysql_bind_host')}"
105         gnocchi::auth::auth_region: {get_param: KeystoneRegion}
106         gnocchi::auth::auth_tenant_name: 'service'