From 31c1998e1b8ee29032b54ad3caea3d34563892be Mon Sep 17 00:00:00 2001 From: Kalibh Halford Date: Tue, 2 Jun 2026 11:39:24 +0100 Subject: [PATCH] ENH: Make virtual machine energy public Move the Virtual-Machine energy dashboards public for users. --- .../roles/grafana/templates/provision_dashboards.sh.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/grafana_monitoring/roles/grafana/templates/provision_dashboards.sh.j2 b/grafana_monitoring/roles/grafana/templates/provision_dashboards.sh.j2 index 4b937da5..7a235ea4 100644 --- a/grafana_monitoring/roles/grafana/templates/provision_dashboards.sh.j2 +++ b/grafana_monitoring/roles/grafana/templates/provision_dashboards.sh.j2 @@ -17,8 +17,9 @@ if [[ "$BRANCH_NAME" == "{{ grafana_dashboards_branch }}" ]]; then fi {% if inventory_hostname.startswith("grafana") %} -for DIR in $(ls -l | grep -v cloud_dashboard.yaml | grep -v Slots-Available | grep -v total | awk -F' ' '{ print $NF }'); do rm -r $DIR; done +for DIR in $(ls -l | grep -v cloud_dashboard.yaml | grep -v Slots-Available | grep -v Virtual-Machines | grep -v total | awk -F' ' '{ print $NF }'); do rm -r $DIR; done mkdir "Public" mv Slots-Available/openstack_slots_available.json Public -rm -r Slots-Available +mv Virtual-Machines/* Public +rm -d Slots-Available Virtual-Machines {% endif %}