From f521ffdb9089d920b155ae3464eb50f3cff8034e Mon Sep 17 00:00:00 2001 From: John Spray Date: Tue, 24 Apr 2018 15:05:44 -0400 Subject: [PATCH] vstart: update for dashboard TLS Signed-off-by: John Spray --- src/vstart.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/vstart.sh b/src/vstart.sh index e201ffce0fad9..ab316efeff04f 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -686,9 +686,9 @@ EOF if $with_mgr_dashboard ; then ceph_adm config set mgr mgr/dashboard/$name/server_port $MGR_PORT if [ $mgr -eq 1 ]; then - DASH_URLS="http://$IP:$MGR_PORT" + DASH_URLS="https://$IP:$MGR_PORT" else - DASH_URLS+=", http://$IP:$MGR_PORT" + DASH_URLS+=", https://$IP:$MGR_PORT" fi fi MGR_PORT=$(($MGR_PORT + 1000)) @@ -711,6 +711,9 @@ EOF # setting login credentials for dashboard if $with_mgr_dashboard; then ceph_adm tell mgr dashboard set-login-credentials admin admin + if ! ceph_adm tell mgr dashboard create-self-signed-cert; then + echo dashboard module not working correctly! + fi fi if ceph_adm tell mgr restful create-self-signed-cert; then -- 2.39.5