ec2-api: Get FQDN from hiera instead of puppet fact
[apex-tripleo-heat-templates.git] / puppet / services / ceph-mds.yaml
1 heat_template_version: ocata
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   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   CephMdsKey:
22     description: The cephx key for the MDS service. Can be created
23                  with ceph-authtool --gen-print-key.
24     type: string
25     hidden: true
26
27 resources:
28   CephBase:
29     type: ./ceph-base.yaml
30     properties:
31       ServiceNetMap: {get_param: ServiceNetMap}
32       DefaultPasswords: {get_param: DefaultPasswords}
33       EndpointMap: {get_param: EndpointMap}
34
35 outputs:
36   role_data:
37     description: Role data for the Ceph MDS service.
38     value:
39       service_name: ceph_mds
40       config_settings:
41         map_merge:
42           - get_attr: [CephBase, role_data, config_settings]
43           - ceph::profile::params::mds_key: {get_param: CephMdsKey}
44             tripleo.ceph_mds.firewall_rules:
45               '112 ceph_mds':
46                 dport:
47                   - '6800-7300'
48       step_config: |
49         include ::tripleo::profile::base::ceph::mds