Merge "LVM in cinder-volume container without udev"
[apex-tripleo-heat-templates.git] / puppet / services / cinder-backup.yaml
1 heat_template_version: pike
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   ServiceData:
20     default: {}
21     description: Dictionary packing service data
22     type: json
23   ServiceNetMap:
24     default: {}
25     description: Mapping of service_name -> network name. Typically set
26                  via parameter_defaults in the resource registry.  This
27                  mapping overrides those in ServiceNetMapDefaults.
28     type: json
29   DefaultPasswords:
30     default: {}
31     type: json
32   RoleName:
33     default: ''
34     description: Role name on which the service is applied
35     type: string
36   RoleParameters:
37     default: {}
38     description: Parameters specific to the role
39     type: json
40   EndpointMap:
41     default: {}
42     description: Mapping of service endpoint -> protocol. Typically set
43                  via parameter_defaults in the resource registry.
44     type: json
45   MonitoringSubscriptionCinderBackup:
46     default: 'overcloud-cinder-backup'
47     type: string
48
49 resources:
50
51   CinderBase:
52     type: ./cinder-base.yaml
53     properties:
54       ServiceData: {get_param: ServiceData}
55       ServiceNetMap: {get_param: ServiceNetMap}
56       DefaultPasswords: {get_param: DefaultPasswords}
57       EndpointMap: {get_param: EndpointMap}
58       RoleName: {get_param: RoleName}
59       RoleParameters: {get_param: RoleParameters}
60
61 outputs:
62   role_data:
63     description: Role data for the Cinder Backup role.
64     value:
65       service_name: cinder_backup
66       monitoring_subscription: {get_param: MonitoringSubscriptionCinderBackup}
67       config_settings:
68         map_merge:
69           - get_attr: [CinderBase, role_data, config_settings]
70           - cinder::backup::ceph::backup_ceph_user: {get_param: CephClientUserName}
71             cinder::backup::ceph::backup_ceph_pool: {get_param: CinderBackupRbdPoolName}
72             cinder::backup::swift::backup_swift_container: volumebackups
73       step_config:
74         str_replace:
75           template: "include ::tripleo::profile::base::cinder::backup::DRIVER"
76           params:
77             DRIVER: {get_param: CinderBackupBackend}