Add support for a configuration repo
This commit is contained in:
parent
80c9ed8f01
commit
c7d3c665df
@ -85,6 +85,7 @@ grafana:
|
||||
33303465616532313339393634386166363162393661393037323835323035386663
|
||||
url: "monitor.9iron.club"
|
||||
webroot: "/var/www/grafana"
|
||||
config_repo: "git@git.9iron.club:salt/grafana"
|
||||
# Matrix
|
||||
matrix:
|
||||
server_name: "9iron.club"
|
||||
|
@ -39,6 +39,13 @@
|
||||
dest: "/etc/grafana/grafana.ini"
|
||||
mode: "0640"
|
||||
notify: restart grafana
|
||||
- name: Clone configuration repo
|
||||
git:
|
||||
repo: "{{ grafana.config_repo }}"
|
||||
dest: "/etc/grafana/provisioning"
|
||||
force: yes
|
||||
notify: restart grafana
|
||||
when: grafana.config_repo is defined
|
||||
- name: Enable Grafana
|
||||
systemd:
|
||||
daemon_reload: yes
|
||||
|
Loading…
Reference in New Issue
Block a user