706717e4c6f710b52752a03c75ebee439d0281a5
[apex-tripleo-heat-templates.git] / puppet / services / pacemaker / cinder-backup.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Cinder Backup service with Pacemaker configured with Puppet
5
6 parameters:
7   CinderBackupBackend:
8     default: swift
9     description: The short name of the Cinder Backup backend to use.
10     type: string
11     constraints:
12     - allowed_values: ['swift', 'ceph']
13   CinderBackupRbdPoolName:
14     default: backups
15     type: string
16   CephClientUserName:
17     default: openstack
18     type: string
19   EndpointMap:
20     default: {}
21     description: Mapping of service endpoint -> protocol. Typically set
22                  via parameter_defaults in the resource registry.
23     type: json
24
25 resources:
26
27   CinderBackupBase:
28     type: ../cinder-backup.yaml
29     properties:
30       EndpointMap: {get_param: EndpointMap}
31       CinderBackupBackend: {get_param: CinderBackupBackend}
32       CinderBackupRbdPoolName: {get_param: CinderBackupRbdPoolName}
33       CephClientUserName: {get_param: CephClientUserName}
34
35 outputs:
36   role_data:
37     description: Role data for the Cinder Backup role.
38     value:
39       service_name: cinder_backup
40       config_settings:
41         map_merge:
42           - get_attr: [CinderBackupBase, role_data, config_settings]
43           - cinder::backup::manage_service: false
44             cinder::backup::enabled: false
45       step_config:
46         list_join:
47           - "\n"
48           - - get_attr: [CinderBackupBase, role_data, step_config]
49             - "include ::tripleo::profile::pacemaker::cinder::backup"