Merge "grafana: explicitly validate graphs"

This commit is contained in:
Zuul 2022-08-10 01:25:23 +00:00 committed by Gerrit Code Review
commit 5267b6d8d7
1 changed files with 20 additions and 11 deletions

View File

@ -11,17 +11,6 @@
include_role:
name: use-buildset-registry
- name: install pip
include_role:
name: ensure-pip
- name: Install dependencies
package:
name:
- python3-docker
state: present
become: yes
- name: Make environment vars
set_fact:
SECRETS_DIR: '{{ ansible_user_dir }}/grafana-secrets'
@ -35,6 +24,26 @@
# config file or something some other time.
SCREENSHOT_HEIGHT: '5000'
# Initial sanity check
- name: Explicitly validate dashboards
shell:
executable: /bin/bash
cmd: |
docker run --rm -t -v {{ GRAFYAML_DIR }}:/grafana:ro \
--entrypoint /usr/local/bin/grafana-dashboard \
opendevorg/grafyaml --debug validate /grafana
- name: install pip
include_role:
name: ensure-pip
- name: Install dependencies
package:
name:
- python3-docker
state: present
become: yes
- name: Setup test environment
shell:
executable: /bin/bash