294e7dd2230b9ddc59c81c074efc810dcb9bed43
[apex-tripleo-heat-templates.git] / puppet / services / ceilometer-agent-central.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Ceilometer Central Agent 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   RedisPassword:
13     description: The password for the redis service account.
14     type: string
15     hidden: true
16   RedisVirtualIPUri:
17     type: string
18     default: ''
19
20
21 resources:
22   CeilometerServiceBase:
23     type: ./ceilometer-base.yaml
24     properties:
25       EndpointMap: {get_param: EndpointMap}
26
27 outputs:
28   role_data:
29     description: Role data for the Ceilometer Central Agent role.
30     value:
31       config_settings:
32         map_merge:
33           - get_attr: [CeilometerServiceBase, role_data, config_settings]
34           - ceilometer::agent::central::coordination_url:
35               list_join:
36                 - ''
37                 - - 'redis://:'
38                   - {get_param: RedisPassword}
39                   - '@'
40                   - {get_param: RedisVirtualIPUri}
41                   - ':6379/'
42       step_config: |
43         include ::tripleo::profile::base::ceilometer::agent::central