Disable Ingress
Adds option to enable/disable ingress for ceph verisons >18 Change-Id: I5f03698ed09ff906488711d5d5a6feb74146b6ca
This commit is contained in:
ashrod98
committed by
Goutham Pacha Ravi
parent
e29051fd9c
commit
1100aa6f0a
1 changed files with 2 additions and 1 deletions
@@ -78,6 +78,7 @@ CEPHFS_CLIENT=0
CEPHFS_CLIENT_NAME="client.$MANILA_CEPH_USER"
CEPHFS_CLIENT_LOG="/var/log/ceph-$CEPHFS_CLIENT_NAME.log"
CEPHFS_MULTIPLE_FILESYSTEMS=${CEPHFS_MULTIPLE_FILESYSTEMS:-False}
ENABLE_INGRESS=${ENABLE_INGRESS:-True}
VIP=${CEPH_INGRESS_IP:-$HOST_IP}
@@ -368,7 +369,7 @@ function _install_and_configure_clustered_nfs {
ceph_version=$(_get_ceph_version)
echo "[CEPHADM] Deploy nfs.$FSNAME backend"
if [ "${ceph_version%%\.*}" -ge 18 ]; then
if [[ "${ceph_version%%\.*}" -ge 18 && $ENABLE_INGRESS == "True" ]]; then
$SUDO "$CEPHADM" shell --fsid $FSID --config $CEPH_CONFIG \
--keyring $CEPH_KEYRING -- ceph nfs cluster create \
"$FSNAME" "$HOSTNAME" --port $NFS_PORT --ingress \
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.