Convert service_name to underscore syntax
[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       service_name: ceilometer_agent_central
32       config_settings:
33         map_merge:
34           - get_attr: [CeilometerServiceBase, role_data, config_settings]
35           - ceilometer::agent::central::coordination_url:
36               list_join:
37                 - ''
38                 - - 'redis://:'
39                   - {get_param: RedisPassword}
40                   - '@'
41                   - {get_param: RedisVirtualIPUri}
42                   - ':6379/'
43       step_config: |
44         include ::tripleo::profile::base::ceilometer::agent::central