[CEPH] select the RGW backend based on RGW version

Use the Beast backend only when Mimic binaries are installed.
Otherwise use civitweb if the binares are from Ceph Luminous.

Change-Id: Ia7cb64d8db7eed2fc0c57387b26a27163af34520
This commit is contained in:
Matthew Heler 2019-01-08 03:00:52 -06:00 committed by Matthew Heler
parent 0770465962
commit ec86891c8f
1 changed files with 5 additions and 1 deletions

View File

@ -54,7 +54,11 @@ if [ ! -e "${RGW_KEYRING}" ]; then
chmod 0600 "${RGW_KEYRING}"
fi
RGW_FRONTENDS="beast port=${RGW_FRONTEND_PORT}"
if [[ $(ceph -v | egrep -c "luminous" | xargs echo) -gt 0 ]]; then
RGW_FRONTENDS="civitweb port=${RGW_FRONTEND_PORT}"
else
RGW_FRONTENDS="beast port=${RGW_FRONTEND_PORT}"
fi
/usr/bin/radosgw \
--cluster "${CLUSTER}" \