0fc98b644a823ff5fc2545974515296098e257cd
[apex-tripleo-heat-templates.git] / puppet / services / cinder-backup.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Cinder Backup service 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   CinderBase:
34     type: ./cinder-base.yaml
35     properties:
36       ServiceNetMap: {get_param: ServiceNetMap}
37       EndpointMap: {get_param: EndpointMap}
38
39 outputs:
40   role_data:
41     description: Role data for the Cinder Backup role.
42     value:
43       service_name: cinder_backup
44       config_settings:
45         map_merge:
46           - get_attr: [CinderBase, role_data, config_settings]
47           - cinder::backup::ceph::backup_ceph_user: {get_param: CephClientUserName}
48             cinder::backup::ceph::backup_ceph_pool: {get_param: CinderBackupRbdPoolName}
49             cinder::backup::swift::backup_swift_container: volumebackups
50       step_config:
51         str_replace:
52           template: "include ::tripleo::profile::base::cinder::backup::DRIVER"
53           params:
54             DRIVER: {get_param: CinderBackupBackend}