Merge "Add trunking plugin to list of default ML2 service plugins"
[apex-tripleo-heat-templates.git] / puppet / services / pacemaker / cinder-backup.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Cinder Backup service with Pacemaker 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   CinderBackupBase:
37     type: ../cinder-backup.yaml
38     properties:
39       ServiceNetMap: {get_param: ServiceNetMap}
40       DefaultPasswords: {get_param: DefaultPasswords}
41       EndpointMap: {get_param: EndpointMap}
42       CinderBackupBackend: {get_param: CinderBackupBackend}
43       CinderBackupRbdPoolName: {get_param: CinderBackupRbdPoolName}
44       CephClientUserName: {get_param: CephClientUserName}
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_attr: [CinderBackupBase, role_data, monitoring_subscription]}
52       config_settings:
53         map_merge:
54           - get_attr: [CinderBackupBase, role_data, config_settings]
55           - cinder::backup::manage_service: false
56             cinder::backup::enabled: false
57       step_config:
58         list_join:
59           - "\n"
60           - - get_attr: [CinderBackupBase, role_data, step_config]
61             - "include ::tripleo::profile::pacemaker::cinder::backup"