1
0
Fork 0
mirror of synced 2024-11-22 08:55:35 -05:00
formula-grafana/grafana/server.sls
2015-12-08 11:23:30 +01:00

25 lines
No EOL
498 B
Text

{%- from "grafana/map.jinja" import server with context %}
{%- if server.enabled %}
grafana_packages:
pkg.installed:
- names: {{ server.pkgs }}
/etc/grafana/grafana.ini:
file.managed:
- source: salt://grafana/files/grafana.ini
- template: jinja
- user: grafana
- group: grafana
- require:
- pkg: grafana_packages
grafana_service:
service.running:
- name: {{ server.service }}
- enable: true
- reload: true
- watch:
- file: /etc/grafana/grafana.ini
{%- endif %}