manila/doc/source/contributor/samples/cephfs_local.conf
Tom Barron 8d1dcb1e0c Updates to support in Ceph local.conf sample
to make user devstack deployment a bit easier.

Since snapshot_support is now on by default for Ceph
backends, enable it in the default share type extra
specs.

Also specify the SHARE_DRIVER so the manila devstack
plugin doesn't think we're running the generic driver
and try to install kernel NFS and samba servers.

Change-Id: I636a047cacba7c5960df15a99fc79a35a818f45d
2020-12-10 15:44:08 -05:00

45 lines
1.4 KiB
Plaintext

######################################################################
# This local.conf sets up Devstack with manila enabling the CEPHFS
# driver which operates in driver_handles_share_services=False
# mode. Pay attention to the storage protocol configuration to run
# the cephfs driver with either the native CEPHFS protocol or the NFS
# protocol
#######################################################################
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
DEST=/opt/stack
DATA_DIR=/opt/stack/data
LOGFILE=/opt/stack/devstacklog.txt
# Enabling manila services
LIBS_FROM_GIT=python-manilaclient
enable_plugin manila https://opendev.org/openstack/manila
enable_plugin manila-ui https://opendev.org/openstack/manila-ui
enable_plugin manila-tempest-plugin https://opendev.org/openstack/manila-tempest-plugin
# Enabling ceph
enable_plugin devstack-plugin-ceph https://opendev.org/openstack/devstack-plugin-ceph
ENABLE_CEPH_MANILA=True
# IMPORTANT - Comment out / remove the following line to use
# the CEPH driver with the native CEPHFS protocol
MANILA_CEPH_DRIVER=cephfsnfs
# CEPHFS backend options
SHARE_DRIVER=manila.share.drivers.cephfs.driver.CephFSDriver
MANILA_SERVICE_IMAGE_ENABLED=False
MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS='snapshot_support=True'
MANILA_CONFIGURE_DEFAULT_TYPES=True
# Required for mounting shares
MANILA_ALLOW_NAS_SERVER_PORTS_ON_HOST=True