Check for grafana api key
Check to see if grafana_apikey is set before settting up the dashboards. Otherwise, the dashboard setup will fail. Change-Id: I629cd29eac49489d21e19323bbea7d33c9c370f2 Signed-off-by: Chuck Short <chucks@redhat.com>
This commit is contained in:
parent
c1fdde009c
commit
741158359b
@ -3,6 +3,12 @@
|
||||
# Generate & Upload Browbeat OpenStack Grafana Dashboards
|
||||
#
|
||||
|
||||
# check that grafana_apikey is entered prior to playbook run
|
||||
- name: Check Grafana API key
|
||||
fail:
|
||||
msg="** Edit grafana_apikey in ../install/group_vars/all.yml before running **"
|
||||
when: grafana_apikey is none
|
||||
|
||||
- name: Check Cloud Name
|
||||
fail:
|
||||
msg: "The Cloud name {{dashboard_cloud_name}} is reserved for a service, please use a different one"
|
||||
|
Loading…
Reference in New Issue
Block a user