81bbc23496126a4a4d28cc3d302a636e0c41acf9
[apex-tripleo-heat-templates.git] / puppet / services / pacemaker / cinder-backup.yaml
1 heat_template_version: ocata
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   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
42 resources:
43
44   CinderBackupBase:
45     type: ../cinder-backup.yaml
46     properties:
47       ServiceNetMap: {get_param: ServiceNetMap}
48       DefaultPasswords: {get_param: DefaultPasswords}
49       EndpointMap: {get_param: EndpointMap}
50       RoleName: {get_param: RoleName}
51       RoleParameters: {get_param: RoleParameters}
52       CinderBackupBackend: {get_param: CinderBackupBackend}
53       CinderBackupRbdPoolName: {get_param: CinderBackupRbdPoolName}
54       CephClientUserName: {get_param: CephClientUserName}
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_attr: [CinderBackupBase, role_data, monitoring_subscription]}
62       config_settings:
63         map_merge:
64           - get_attr: [CinderBackupBase, role_data, config_settings]
65           - cinder::backup::manage_service: false
66             cinder::backup::enabled: false
67       step_config:
68         list_join:
69           - "\n"
70           - - get_attr: [CinderBackupBase, role_data, step_config]
71             - "include ::tripleo::profile::pacemaker::cinder::backup"