Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / pacemaker / cinder-backup.yaml
1 heat_template_version: pike
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   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
46 resources:
47
48   CinderBackupBase:
49     type: ../cinder-backup.yaml
50     properties:
51       ServiceData: {get_param: ServiceData}
52       ServiceNetMap: {get_param: ServiceNetMap}
53       DefaultPasswords: {get_param: DefaultPasswords}
54       EndpointMap: {get_param: EndpointMap}
55       RoleName: {get_param: RoleName}
56       RoleParameters: {get_param: RoleParameters}
57       CinderBackupBackend: {get_param: CinderBackupBackend}
58       CinderBackupRbdPoolName: {get_param: CinderBackupRbdPoolName}
59       CephClientUserName: {get_param: CephClientUserName}
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_attr: [CinderBackupBase, role_data, monitoring_subscription]}
67       config_settings:
68         map_merge:
69           - get_attr: [CinderBackupBase, role_data, config_settings]
70           - cinder::backup::manage_service: false
71             cinder::backup::enabled: false
72       step_config:
73         list_join:
74           - "\n"
75           - - get_attr: [CinderBackupBase, role_data, step_config]
76             - "include ::tripleo::profile::pacemaker::cinder::backup"