Merge "Adds network/cidr mapping into a new service property"
[apex-tripleo-heat-templates.git] / puppet / services / manila-backend-cephfs.yaml
1 heat_template_version: pike
2
3 description: >
4   Openstack Manila Cephfs backend
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   # CephFS Native backend params:
34   ManilaCephFSNativeBackendName:
35     type: string
36     default: cephfsnative
37   ManilaCephFSNativeDriverHandlesShareServers:
38     type: boolean
39     default: false
40   ManilaCephFSNativeShareBackendName:
41     type: string
42     default: 'cephfs'
43   ManilaCephFSNativeCephFSConfPath:
44     type: string
45     default: '/etc/ceph/ceph.conf'
46   ManilaCephFSNativeCephFSAuthId:
47     type: string
48     default: 'manila'
49   ManilaCephFSNativeCephFSClusterName:
50     type: string
51     default: 'ceph'
52   ManilaCephFSNativeCephFSEnableSnapshots:
53     type: boolean
54     default: false
55   ManilaCephFSDataPoolName:
56     default: manila_data
57     type: string
58   ManilaCephFSMetadataPoolName:
59     default: manila_metadata
60     type: string
61   # (jprovazn) default value is set to assure this templates works with an
62   # external ceph too (user/key is created only when ceph is deployed by
63   # TripleO)
64   CephManilaClientKey:
65     default: ''
66     description: The Ceph client key. Can be created with ceph-authtool --gen-print-key.
67     type: string
68     hidden: true
69
70 outputs:
71   role_data:
72     description: Role data for the Manila Cephfs backend.
73     value:
74       service_name: manila_backend_cephfs
75       config_settings:
76         manila::backend::cephfsnative::title: {get_param: ManilaCephFSNativeBackendName}
77         manila::backend::cephfsnative::driver_handles_share_servers: {get_param: ManilaCephFSNativeDriverHandlesShareServers}
78         manila::backend::cephfsnative::share_backend_name: {get_param: ManilaCephFSNativeShareBackendName}
79         manila::backend::cephfsnative::cephfs_conf_path: {get_param: ManilaCephFSNativeCephFSConfPath}
80         manila::backend::cephfsnative::cephfs_auth_id: {get_param: ManilaCephFSNativeCephFSAuthId}
81         manila::backend::cephfsnative::cephfs_cluster_name: {get_param: ManilaCephFSNativeCephFSClusterName}
82         manila::backend::cephfsnative::cephfs_enable_snapshots: {get_param: ManilaCephFSNativeCephFSEnableSnapshots}
83         manila::backend::cephfsnative::ceph_client_key: {get_param: CephManilaClientKey}
84         ceph::profile::params::fs_data_pool: {get_param: ManilaCephFSDataPoolName}
85         ceph::profile::params::fs_metadata_pool: {get_param: ManilaCephFSMetadataPoolName}
86         ceph::profile::params::fs_name: {get_param: ManilaCephFSNativeShareBackendName}
87       step_config: