1866b6c49c12acf77eaefd0897ffb0149adbed84
[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   ServiceNetMap:
20     default: {}
21     description: Mapping of service_name -> network name. Typically set
22                  via parameter_defaults in the resource registry.  This
23                  mapping overrides those in ServiceNetMapDefaults.
24     type: json
25   EndpointMap:
26     default: {}
27     description: Mapping of service endpoint -> protocol. Typically set
28                  via parameter_defaults in the resource registry.
29     type: json
30
31 resources:
32
33   CinderBackupBase:
34     type: ../cinder-backup.yaml
35     properties:
36       ServiceNetMap: {get_param: ServiceNetMap}
37       EndpointMap: {get_param: EndpointMap}
38       CinderBackupBackend: {get_param: CinderBackupBackend}
39       CinderBackupRbdPoolName: {get_param: CinderBackupRbdPoolName}
40       CephClientUserName: {get_param: CephClientUserName}
41
42 outputs:
43   role_data:
44     description: Role data for the Cinder Backup role.
45     value:
46       service_name: cinder_backup
47       config_settings:
48         map_merge:
49           - get_attr: [CinderBackupBase, role_data, config_settings]
50           - cinder::backup::manage_service: false
51             cinder::backup::enabled: false
52       step_config:
53         list_join:
54           - "\n"
55           - - get_attr: [CinderBackupBase, role_data, step_config]
56             - "include ::tripleo::profile::pacemaker::cinder::backup"