Merge "Rename service_workflow_tasks into workflow_tasks" into stable/pike
[apex-tripleo-heat-templates.git] / docker / services / ceph-ansible / ceph-mds.yaml
1 heat_template_version: pike
2
3 description: >
4   Ceph Metadata service.
5
6 parameters:
7   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   CephMdsKey:
34     description: The cephx key for the MDS service. Can be created
35                  with ceph-authtool --gen-print-key.
36     type: string
37     hidden: true
38   ManilaCephFSDataPoolName:
39     default: manila_data
40     type: string
41   ManilaCephFSMetadataPoolName:
42     default: manila_metadata
43     type: string
44   ManilaCephFSNativeShareBackendName:
45     default: cephfs
46     type: string
47
48 resources:
49   CephBase:
50     type: ./ceph-base.yaml
51     properties:
52       ServiceData: {get_param: ServiceData}
53       ServiceNetMap: {get_param: ServiceNetMap}
54       DefaultPasswords: {get_param: DefaultPasswords}
55       EndpointMap: {get_param: EndpointMap}
56       RoleName: {get_param: RoleName}
57       RoleParameters: {get_param: RoleParameters}
58
59 outputs:
60   role_data:
61     description: Role data for the Ceph Metadata service.
62     value:
63       service_name: ceph_mds
64       upgrade_tasks: []
65       step_config: ''
66       puppet_config:
67         config_image: ''
68         config_volume: ''
69         step_config: ''
70       docker_config: {}
71       workflow_tasks: {get_attr: [CephBase, role_data, workflow_tasks]}
72       config_settings:
73         map_merge:
74         - tripleo.ceph_mds.firewall_rules:
75             '112 ceph_mds':
76               dport:
77               - '6800-7300'
78         - ceph_mds_ansible_vars:
79             map_merge:
80             - {get_attr: [CephBase, role_data, config_settings, ceph_common_ansible_vars]}
81             - cephfs_data: {get_param: ManilaCephFSDataPoolName}
82               cephfs_metadata: {get_param: ManilaCephFSMetadataPoolName}
83               cephfs: {get_param: ManilaCephFSNativeShareBackendName}