Merge "grafana: explicitly validate graphs"

changes/68/854968/1
Zuul 2 months ago committed by Gerrit Code Review
commit 5267b6d8d7
  1. 31
      playbooks/grafana/main.yaml

@ -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

Loading…
Cancel
Save