1
0
Fork 0
mirror of synced 2024-11-22 17:05:34 -05:00
formula-grafana/grafana/server.sls

25 lines
498 B
Text
Raw Normal View History

2015-12-04 10:43:48 -05:00
{%- from "grafana/map.jinja" import server with context %}
{%- if server.enabled %}
grafana_packages:
pkg.installed:
2015-12-08 04:23:39 -05:00
- names: {{ server.pkgs }}
2015-12-04 10:43:48 -05:00
2015-12-08 04:23:39 -05:00
/etc/grafana/grafana.ini:
2015-12-04 10:43:48 -05:00
file.managed:
2015-12-08 04:23:39 -05:00
- source: salt://grafana/files/grafana.ini
2015-12-04 10:43:48 -05:00
- template: jinja
2015-12-08 05:23:30 -05:00
- user: grafana
- group: grafana
2015-12-04 10:43:48 -05:00
- require:
- pkg: grafana_packages
2015-12-08 04:26:39 -05:00
grafana_service:
service.running:
- name: {{ server.service }}
- enable: true
- reload: true
- watch:
- file: /etc/grafana/grafana.ini
2015-12-04 10:43:48 -05:00
{%- endif %}