From: Joao Eduardo Luis Date: Wed, 21 Mar 2018 09:13:47 +0000 (+0000) Subject: vstart: allow disabling dashboard with option X-Git-Tag: v13.1.0~518^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F20986%2Fhead;p=ceph.git vstart: allow disabling dashboard with option Signed-off-by: Joao Eduardo Luis --- diff --git a/src/vstart.sh b/src/vstart.sh index ead8ecba4402..1e8aea2bcd4c 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -130,6 +130,12 @@ rgw_frontend="civetweb" rgw_compression="" lockdep=${LOCKDEP:-1} +with_mgr_dashboard=true +if [[ "$(get_cmake_variable WITH_MGR_DASHBOARD_FRONTEND)" != "ON" ]]; then + echo "ceph-mgr dashboard not built - disabling." + with_mgr_dashboard=false +fi + filestore_path= VSTART_SEC="client.vstart.sh" @@ -171,6 +177,7 @@ usage=$usage"\t--cache : enable cache tiering on pool\n" usage=$usage"\t--short: short object names only; necessary for ext4 dev\n" usage=$usage"\t--nolockdep disable lockdep\n" usage=$usage"\t--multimds allow multimds with maximum active count\n" +usage=$usage"\t--without-dashboard: do not run using mgr dashboard" usage_exit() { printf "$usage" @@ -313,6 +320,9 @@ case $1 in CEPH_MAX_MDS="$2" shift ;; + --without-dashboard) + with_mgr_dashboard=false + ;; * ) usage_exit esac @@ -410,6 +420,11 @@ prepare_conf() { heartbeat file = $CEPH_OUT_DIR/\$name.heartbeat " + local mgr_modules="restful status balancer" + if $with_mgr_dashboard; then + mgr_modules="dashboard $mgr_modules" + fi + wconf <