7686028d21a9b150c9cc6809c5452501ae3d7857
[apex-tripleo-heat-templates.git] / puppet / services / pacemaker / ceph-rbdmirror.yaml
1 heat_template_version: ocata
2
3 description: >
4   Ceph RBD mirror service.
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   CephClientUserName:
22     default: openstack
23     type: string
24
25 resources:
26   CephBase:
27     type: ../ceph-base.yaml
28     properties:
29       ServiceNetMap: {get_param: ServiceNetMap}
30       DefaultPasswords: {get_param: DefaultPasswords}
31       EndpointMap: {get_param: EndpointMap}
32
33 outputs:
34   role_data:
35     description: Role data for the Ceph RBD mirrror service.
36     value:
37       service_name: ceph_rbdmirror
38       config_settings:
39         map_merge:
40           - get_attr: [CephBase, role_data, config_settings]
41           - tripleo::profile::pacemaker::ceph::rbdmirror::client_name: {get_param: CephClientUserName}
42             tripleo.ceph_rbdmirror.firewall_rules:
43               '113 ceph_rbdmirror':
44                 dport:
45                   - '6800-7300'
46       step_config: |
47         include ::tripleo::profile::pacemaker::ceph::rbdmirror