1
0
Fork 0
mirror of synced 2024-11-05 01:08:57 -05:00
formula-grafana/grafana/server.sls
2015-12-08 10:26:39 +01:00

25 lines
No EOL
492 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: root
- group: root
- require:
- pkg: grafana_packages
grafana_service:
service.running:
- name: {{ server.service }}
- enable: true
- reload: true
- watch:
- file: /etc/grafana/grafana.ini
{%- endif %}