From 67fa0c99646ffaaf73b02e275866fa5702a6b243 Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Wed, 21 Mar 2018 09:13:47 +0000 Subject: [PATCH] vstart: allow disabling dashboard with option Signed-off-by: Joao Eduardo Luis --- src/vstart.sh | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/src/vstart.sh b/src/vstart.sh index ead8ecba44026..1e8aea2bcd4c8 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 <