Merge "Add flag to assert that puppet manages the keystone endpoints"
[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
34 resources:
35
36   CinderBase:
37     type: ./cinder-base.yaml
38     properties:
39       ServiceNetMap: {get_param: ServiceNetMap}
40       DefaultPasswords: {get_param: DefaultPasswords}
41       EndpointMap: {get_param: EndpointMap}
42
43 outputs:
44   role_data:
45     description: Role data for the Cinder Backup role.
46     value:
47       service_name: cinder_backup
48       config_settings:
49         map_merge:
50           - get_attr: [CinderBase, role_data, config_settings]
51           - cinder::backup::ceph::backup_ceph_user: {get_param: CephClientUserName}
52             cinder::backup::ceph::backup_ceph_pool: {get_param: CinderBackupRbdPoolName}
53             cinder::backup::swift::backup_swift_container: volumebackups
54       step_config:
55         str_replace:
56           template: "include ::tripleo::profile::base::cinder::backup::DRIVER"
57           params:
58             DRIVER: {get_param: CinderBackupBackend}