Merge "[CEPH] select the RGW backend based on RGW version"

This commit is contained in:
Zuul 2019-01-08 20:50:26 +00:00 committed by Gerrit Code Review
commit 90542c5c29
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}" \