Add support for a configuration repo

This commit is contained in:
Salt 2020-08-07 04:47:57 -05:00
parent 80c9ed8f01
commit c7d3c665df
2 changed files with 8 additions and 0 deletions

View File

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

View File

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