Skip to content

Commit

Permalink
Add grafana fix (#34)
Browse files Browse the repository at this point in the history
* Copy grafana data only if not exist
  • Loading branch information
soumyadipDe authored Dec 1, 2017
1 parent 8853db6 commit 301ab8a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions roles/monitoring/tasks/grafana.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#©2016-2017 EdgeVerve Systems Limited (a fully owned Infosys subsidiary),Bangalore, India. All Rights Reserved.

- name: unarchive grafana data files
- name: Check that the grafana data exists
stat:
path: "{{cepfolder}}/cep-data/grafana/grafana.db"
register: stat_result

- name: copy grafana data files if doesn't exist
copy:
src: "roles/monitoring/templates/grafana/grafana.db"
dest: "{{cepfolder}}/cep-data/grafana/grafana.db"

when: stat_result.stat.exists == False

- name: spin grafana service
shell: >
Expand Down

0 comments on commit 301ab8a

Please sign in to comment.