Merge "Add Ceph cluster health validation on upgrade"
[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   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   RedisPassword:
22     description: The password for the redis service account.
23     type: string
24     hidden: true
25   MonitoringSubscriptionCeilometerCentral:
26     default: 'overcloud-ceilometer-agent-central'
27     type: string
28
29 resources:
30   CeilometerServiceBase:
31     type: ./ceilometer-base.yaml
32     properties:
33       ServiceNetMap: {get_param: ServiceNetMap}
34       DefaultPasswords: {get_param: DefaultPasswords}
35       EndpointMap: {get_param: EndpointMap}
36
37 outputs:
38   role_data:
39     description: Role data for the Ceilometer Central Agent role.
40     value:
41       service_name: ceilometer_agent_central
42       monitoring_subscription: {get_param: MonitoringSubscriptionCeilometerCentral}
43       config_settings:
44         map_merge:
45           - get_attr: [CeilometerServiceBase, role_data, config_settings]
46           - ceilometer::agent::central::coordination_url:
47               list_join:
48                 - ''
49                 - - 'redis://:'
50                   - {get_param: RedisPassword}
51                   - '@'
52                   - "%{hiera('redis_vip')}"
53                   - ':6379/'
54       step_config: |
55         include ::tripleo::profile::base::ceilometer::agent::central