Merge "Containerize MySQL for HA"
[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   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   RoleName:
29     default: ''
30     description: Role name on which the service is applied
31     type: string
32   RoleParameters:
33     default: {}
34     description: Parameters specific to the role
35     type: json
36   EndpointMap:
37     default: {}
38     description: Mapping of service endpoint -> protocol. Typically set
39                  via parameter_defaults in the resource registry.
40     type: json
41   MonitoringSubscriptionCinderBackup:
42     default: 'overcloud-cinder-backup'
43     type: string
44
45 resources:
46
47   CinderBase:
48     type: ./cinder-base.yaml
49     properties:
50       ServiceNetMap: {get_param: ServiceNetMap}
51       DefaultPasswords: {get_param: DefaultPasswords}
52       EndpointMap: {get_param: EndpointMap}
53       RoleName: {get_param: RoleName}
54       RoleParameters: {get_param: RoleParameters}
55
56 outputs:
57   role_data:
58     description: Role data for the Cinder Backup role.
59     value:
60       service_name: cinder_backup
61       monitoring_subscription: {get_param: MonitoringSubscriptionCinderBackup}
62       config_settings:
63         map_merge:
64           - get_attr: [CinderBase, role_data, config_settings]
65           - cinder::backup::ceph::backup_ceph_user: {get_param: CephClientUserName}
66             cinder::backup::ceph::backup_ceph_pool: {get_param: CinderBackupRbdPoolName}
67             cinder::backup::swift::backup_swift_container: volumebackups
68       step_config:
69         str_replace:
70           template: "include ::tripleo::profile::base::cinder::backup::DRIVER"
71           params:
72             DRIVER: {get_param: CinderBackupBackend}