Merge "Set NeutronL3HA to false when deploying DVR"
[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   DefaultPasswords:
26     default: {}
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   MonitoringSubscriptionCinderBackup:
34     default: 'overcloud-cinder-backup'
35     type: string
36
37 resources:
38
39   CinderBase:
40     type: ./cinder-base.yaml
41     properties:
42       ServiceNetMap: {get_param: ServiceNetMap}
43       DefaultPasswords: {get_param: DefaultPasswords}
44       EndpointMap: {get_param: EndpointMap}
45
46 outputs:
47   role_data:
48     description: Role data for the Cinder Backup role.
49     value:
50       service_name: cinder_backup
51       monitoring_subscription: {get_param: MonitoringSubscriptionCinderBackup}
52       config_settings:
53         map_merge:
54           - get_attr: [CinderBase, role_data, config_settings]
55           - cinder::backup::ceph::backup_ceph_user: {get_param: CephClientUserName}
56             cinder::backup::ceph::backup_ceph_pool: {get_param: CinderBackupRbdPoolName}
57             cinder::backup::swift::backup_swift_container: volumebackups
58       step_config:
59         str_replace:
60           template: "include ::tripleo::profile::base::cinder::backup::DRIVER"
61           params:
62             DRIVER: {get_param: CinderBackupBackend}