270d3a2668af1e3329535a2ab4fab7b4f0a3e5a3
[apex-tripleo-heat-templates.git] / puppet / services / ceph-mds.yaml
1 heat_template_version: pike
2
3 description: >
4   Ceph MDS 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   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29   CephMdsKey:
30     description: The cephx key for the MDS service. Can be created
31                  with ceph-authtool --gen-print-key.
32     type: string
33     hidden: true
34
35 resources:
36   CephBase:
37     type: ./ceph-base.yaml
38     properties:
39       ServiceNetMap: {get_param: ServiceNetMap}
40       DefaultPasswords: {get_param: DefaultPasswords}
41       EndpointMap: {get_param: EndpointMap}
42       RoleName: {get_param: RoleName}
43       RoleParameters: {get_param: RoleParameters}
44
45 outputs:
46   role_data:
47     description: Role data for the Ceph MDS service.
48     value:
49       service_name: ceph_mds
50       config_settings:
51         map_merge:
52           - get_attr: [CephBase, role_data, config_settings]
53           - ceph::profile::params::mds_key: {get_param: CephMdsKey}
54             tripleo.ceph_mds.firewall_rules:
55               '112 ceph_mds':
56                 dport:
57                   - '6800-7300'
58       step_config: |
59         include ::tripleo::profile::base::ceph::mds