ceph: Allow to change the image path

If we want to put the disk image into a tmpfs, changing CEPH_DATA_DIR
won't work because some file operation needed by ceph are not allowed
on tmpfs.

So, this change allows to change the disk image path only instead of the
whole CEPH_DATA_DIR.

Change-Id: If92f0bdca16f866a475820cf71a30ded28fb2572
This commit is contained in:
Mehdi Abaakouk 2016-03-30 10:04:36 +02:00
parent 65ab7713f7
commit b53a074536
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ CEPH_RELEASE=${CEPH_RELEASE:-hammer}
# Set ``CEPH_DATA_DIR`` to the location of Ceph drives and objects.
# Default is the common DevStack data directory.
CEPH_DATA_DIR=${CEPH_DATA_DIR:-/var/lib/ceph}
CEPH_DISK_IMAGE=${CEPH_DATA_DIR}/drives/images/ceph.img
CEPH_DISK_IMAGE=${CEPH_DISK_IMAGE:-${CEPH_DATA_DIR}/drives/images/ceph.img}
# Set ``CEPH_CONF_DIR`` to the location of the configuration files.
# Default is ``/etc/ceph``.