d91a0181502f27d87e9acd7b64baf037f0bf2d91
[apex-tripleo-heat-templates.git] / puppet / services / pacemaker / cinder-volume.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Cinder Volume service with Pacemaker 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
22 resources:
23
24   CinderVolumeBase:
25     type: ../cinder-volume.yaml
26     properties:
27       ServiceNetMap: {get_param: ServiceNetMap}
28       DefaultPasswords: {get_param: DefaultPasswords}
29       EndpointMap: {get_param: EndpointMap}
30
31 outputs:
32   role_data:
33     description: Role data for the Cinder Volume role.
34     value:
35       service_name: cinder_volume
36       monitoring_subscription: {get_attr: [CinderVolumeBase, role_data, monitoring_subscription]}
37       logging_source: {get_attr: [CinderVolumeBase, role_data, logging_source]}
38       logging_groups: {get_attr: [CinderVolumeBase, role_data, logging_groups]}
39       config_settings:
40         map_merge:
41           - get_attr: [CinderVolumeBase, role_data, config_settings]
42           - cinder::volume::manage_service: false
43             cinder::volume::enabled: false
44             cinder::host: hostgroup
45       step_config:
46         include ::tripleo::profile::pacemaker::cinder::volume