Allow choosing Ceph release on CentOS

Change-Id: I293ccf2111e2983465fcd8c12b3ea931ad446344
This commit is contained in:
Eric Harney 2019-08-05 10:55:05 -04:00
parent cbdcb8c10a
commit 1413355064
1 changed files with 6 additions and 1 deletions

View File

@ -1174,7 +1174,12 @@ function install_ceph {
if is_ceph_enabled_for_service manila; then
setup_packages_for_manila_on_fedora_family
elif [ $DISTRO_TYPE == 'centos' ]; then
configure_repo_ceph "yum" "jewel" "${DISTRO_TYPE}" "${RELEASE}"
if [[ ${CEPH_RELEASE} > 'jewel' ]]; then
repo=${CEPH_RELEASE}
else
repo="jewel"
fi
configure_repo_ceph "yum" $repo "${DISTRO_TYPE}" "${RELEASE}"
fi
if [ "$ENABLE_CEPH_RGW" = "True" ]; then