From c617f77332d5df3f2d61d28b6296e7bf2a745cef Mon Sep 17 00:00:00 2001 From: Mark Beierl Date: Fri, 4 Mar 2022 07:24:01 -0500 Subject: [PATCH] Add Granafa Password Retrives the Grafan password from Grafana and configures MON to have it for initial set up Change-Id: Ib08be45911ea3c6da07bc1cb54c398a05f9730de Signed-off-by: Mark Beierl --- installers/charmed_install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/installers/charmed_install.sh b/installers/charmed_install.sh index fcb8c256..7bec50e3 100755 --- a/installers/charmed_install.sh +++ b/installers/charmed_install.sh @@ -281,6 +281,9 @@ function deploy_charmed_osm(){ juju config -m $MODEL_NAME prometheus site_url=https://prometheus.${API_SERVER}.nip.io echo "Waiting for deployment to finish..." + grafana_leader=`juju status -m $MODEL_NAME grafana | grep "*" | cut -d "*" -f 1` + grafana_admin_password=`juju run -m $MODEL_NAME --unit $grafana_leader "echo \\$GF_SECURITY_ADMIN_PASSWORD"` + juju config -m $MODEL_NAME mon grafana_password=$grafana_admin_password check_osm_deployed echo "OSM with charms deployed" } -- 2.17.1