25 lines
No EOL
492 B
Text
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 %} |