Switch to nas_host/nas_share_path options

Use the new config format instead of writing
/etc/cinder/nfs-shares.conf

Change-Id: Icc504027a8d6301e0acf4ebc53edd8d0a89b1baa
This commit is contained in:
Eric Harney 2017-04-20 14:42:32 -04:00
parent 152c732861
commit e0e6d0ee67
1 changed files with 2 additions and 3 deletions

View File

@ -5,7 +5,6 @@ set +o xtrace
NFS_EXPORT_DIR=${NFS_EXPORT_DIR:-/srv/nfs1}
STACK_NFS_CONF=${STACK_NFS_CONF:-/etc/exports.d/stack_nfs.exports}
NFS_SHARES_CONF=${NFS_SHARES_CONF:-/etc/cinder/nfs-shares.conf}
NFS_SECURE_FILE_PERMISSIONS=${NFS_SECURE_FILE_PERMISSIONS:-False}
NFS_SECURE_FILE_OPERATIONS=${NFS_SECURE_FILE_OPERATIONS:-False}
@ -61,8 +60,8 @@ function is_nfs_enabled_for_service {
}
function configure_cinder_nfs {
echo "localhost:${NFS_EXPORT_DIR}" > ${NFS_SHARES_CONF}
iniset $CINDER_CONF nfs nfs_shares_config ${NFS_SHARES_CONF}
iniset $CINDER_CONF nfs nas_host localhost
iniset $CINDER_CONF nfs nas_share_path ${NFS_EXPORT_DIR}
iniset $CINDER_CONF nfs nas_secure_file_operations \
${NFS_SECURE_FILE_OPERATIONS}
iniset $CINDER_CONF nfs nas_secure_file_permissions \