Merge "Add pre-network hook and example showing config-then-reboot"
[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   KeystoneRegion:
36     type: string
37     default: 'regionOne'
38     description: Keystone region for endpoint
39   RedisPassword:
40     description: The password for the redis service account.
41     type: string
42     hidden: true
43   Debug:
44     type: string
45     default: ''
46     description: Set to True to enable debugging on all services.
47
48 outputs:
49   aux_parameters:
50     description: Additional parameters referenced outside the base file
51     value:
52       gnocchi_indexer_backend: {get_param: GnocchiIndexerBackend}
53   role_data:
54     description: Shared role data for the Heat services.
55     value:
56       service_name: gnocchi_base
57       config_settings:
58         #Gnocchi engine
59         gnocchi_redis_password: {get_param: RedisPassword}
60         gnocchi::debug: {get_param: Debug}
61         gnocchi::db::database_connection:
62           list_join:
63             - ''
64             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
65               - '://gnocchi:'
66               - {get_param: GnocchiPassword}
67               - '@'
68               - {get_param: [EndpointMap, MysqlInternal, host]}
69               - '/gnocchi'
70               - '?bind_address='
71               - "%{hiera('tripleo::profile::base::database::mysql::client_bind_address')}"
72         gnocchi::db::sync::extra_opts: '--skip-storage --create-legacy-resource-types'
73         gnocchi::storage::swift::swift_user: 'service:gnocchi'
74         gnocchi::storage::swift::swift_auth_version: 2
75         gnocchi::storage::swift::swift_key: {get_param: GnocchiPassword}
76         gnocchi::storage::ceph::ceph_pool: {get_param: GnocchiRbdPoolName}
77         gnocchi::storage::ceph::ceph_username: {get_param: CephClientUserName}
78         gnocchi::storage::ceph::ceph_keyring:
79           list_join:
80           - '.'
81           - - '/etc/ceph/ceph'
82             - 'client'
83             - {get_param: CephClientUserName}
84             - 'keyring'
85         #Gnocchi statsd
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'