prevent false success occurring when deleting the grafana dashboard

This commit is contained in:
Jason Ertel
2023-01-19 14:19:55 -05:00
parent 59177288ef
commit 79fb5dc525
2 changed files with 14 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
# this script is used to delete the default Grafana dashboard folders that existed prior to Grafana dashboard and Salt management changes in 2.3.70
# Exit if an error occurs. The next highstate will retry.
set -e
folders=$(curl -X GET http://admin:{{salt['pillar.get']('secrets:grafana_admin')}}@localhost:3000/api/folders | jq -r '.[] | @base64')
delfolder=("Manager" "Manager Search" "Sensor Nodes" "Search Nodes" "Standalone" "Eval Mode")