Add support for the cephfs_nfs_cluster_id parameter
Change-Id: Id2b3e800a9ca5f50d050f15f8c0d136626cc8e51
This commit is contained in:
parent
aaf348d11b
commit
a67f0cc007
@ -59,6 +59,11 @@
|
||||
# hosting the Ganesha service (prevails on server_password)
|
||||
# Defaults to: $facts['os_service_default']
|
||||
#
|
||||
# [*cephfs_nfs_cluster_id*]
|
||||
# (optional) ID of the NFS cluster to use (when using ceph orchestrator
|
||||
# deployed clustered NFS service)
|
||||
# Defaults to: $facts['os_service_default']
|
||||
#
|
||||
# [*cephfs_volume_mode*]
|
||||
# (optional) octal rwx permissions for CephFS backing volumes,
|
||||
# snapshots, and groups of volumes and snapshots.
|
||||
@ -100,6 +105,7 @@ define manila::backend::cephfs (
|
||||
$cephfs_ganesha_server_username = $facts['os_service_default'],
|
||||
$cephfs_ganesha_server_password = $facts['os_service_default'],
|
||||
$cephfs_ganesha_path_to_private_key = $facts['os_service_default'],
|
||||
$cephfs_nfs_cluster_id = $facts['os_service_default'],
|
||||
$cephfs_volume_mode = $facts['os_service_default'],
|
||||
$cephfs_protocol_helper_type = 'CEPHFS',
|
||||
$cephfs_filesystem_name = $facts['os_service_default'],
|
||||
@ -126,6 +132,7 @@ define manila::backend::cephfs (
|
||||
"${name}/cephfs_ganesha_server_username": value => $cephfs_ganesha_server_username;
|
||||
"${name}/cephfs_ganesha_server_password": value => $cephfs_ganesha_server_password, secret => true;
|
||||
"${name}/cephfs_ganesha_path_to_private_key": value => $cephfs_ganesha_path_to_private_key;
|
||||
"${name}/cephfs_nfs_cluster_id": value => $cephfs_nfs_cluster_id;
|
||||
"${name}/cephfs_volume_mode": value => $cephfs_volume_mode;
|
||||
"${name}/cephfs_protocol_helper_type": value => $cephfs_protocol_helper_type;
|
||||
"${name}/cephfs_filesystem_name": value => $cephfs_filesystem_name;
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The new ``manila::backend::cephfs::cephfs_nfs_cluster_id`` parameter has been added.
|
@ -19,6 +19,7 @@ describe 'manila::backend::cephfs' do
|
||||
:cephfs_ganesha_server_is_remote => true,
|
||||
:cephfs_ganesha_server_username => 'ganeshadmin',
|
||||
:cephfs_ganesha_path_to_private_key => '/readable/by/manila.key',
|
||||
:cephfs_nfs_cluster_id => 'mycephfsnfscluster',
|
||||
:cephfs_volume_mode => '0775',
|
||||
:cephfs_filesystem_name => 'cephfs',
|
||||
:reserved_share_percentage => 10.0,
|
||||
@ -54,6 +55,8 @@ describe 'manila::backend::cephfs' do
|
||||
'ganeshadmin')
|
||||
is_expected.to contain_manila_config('cephfs/cephfs_ganesha_path_to_private_key').with_value(
|
||||
'/readable/by/manila.key')
|
||||
is_expected.to contain_manila_config('cephfs/cephfs_nfs_cluster_id').with_value(
|
||||
'mycephfsnfscluster')
|
||||
is_expected.to contain_manila_config('cephfs/cephfs_filesystem_name').with_value(
|
||||
'cephfs')
|
||||
is_expected.to contain_manila_config('cephfs/reserved_share_percentage').with_value(10.0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user