feat: add option to use custom datasource template files
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
c660711a85
commit
8474cf114f
@ -55,3 +55,6 @@ grafana_log_mode:
|
|||||||
grafana_log_level: info
|
grafana_log_level: info
|
||||||
|
|
||||||
grafana_log_providers: []
|
grafana_log_providers: []
|
||||||
|
|
||||||
|
grafana_datasource_files:
|
||||||
|
- grafana/datasources/*.yml.j2
|
||||||
|
@ -43,6 +43,18 @@
|
|||||||
mode: 0640
|
mode: 0640
|
||||||
notify: __grafana_restart
|
notify: __grafana_restart
|
||||||
|
|
||||||
|
- name: Copy custom grafana datasource files
|
||||||
|
template:
|
||||||
|
src: "{{ item }}"
|
||||||
|
dest: /etc/grafana/provisioning/datasources/{{ item | basename | splitext | first }}
|
||||||
|
owner: root
|
||||||
|
group: grafana
|
||||||
|
mode: 0640
|
||||||
|
with_fileglob: "{{ grafana_template_files }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item | basename | splitext | first }}"
|
||||||
|
notify: __grafana_restart
|
||||||
|
|
||||||
- name: Ensure Grafana is up and running
|
- name: Ensure Grafana is up and running
|
||||||
service:
|
service:
|
||||||
name: grafana-server
|
name: grafana-server
|
||||||
|
Loading…
Reference in New Issue
Block a user