a47d26b71489c197508966044f56ca0cda69f6d3
[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   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   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   RedisPassword:
19     description: The password for the redis service account.
20     type: string
21     hidden: true
22
23 resources:
24   CeilometerServiceBase:
25     type: ./ceilometer-base.yaml
26     properties:
27       ServiceNetMap: {get_param: ServiceNetMap}
28       EndpointMap: {get_param: EndpointMap}
29
30 outputs:
31   role_data:
32     description: Role data for the Ceilometer Central Agent role.
33     value:
34       service_name: ceilometer_agent_central
35       config_settings:
36         map_merge:
37           - get_attr: [CeilometerServiceBase, role_data, config_settings]
38           - ceilometer::agent::central::coordination_url:
39               list_join:
40                 - ''
41                 - - 'redis://:'
42                   - {get_param: RedisPassword}
43                   - '@'
44                   - "%{hiera('redis_vip')}"
45                   - ':6379/'
46       step_config: |
47         include ::tripleo::profile::base::ceilometer::agent::central