Enforce service
This commit is contained in:
parent
ee16ca7c4d
commit
83b58af7d4
2 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
Debian:
|
Debian:
|
||||||
pkgs:
|
pkgs:
|
||||||
- grafana
|
- grafana
|
||||||
|
service: grafana-server
|
||||||
bind:
|
bind:
|
||||||
address: 0.0.0.0
|
address: 0.0.0.0
|
||||||
port: 3000
|
port: 3000
|
||||||
|
|
|
@ -14,4 +14,12 @@ grafana_packages:
|
||||||
- require:
|
- require:
|
||||||
- pkg: grafana_packages
|
- pkg: grafana_packages
|
||||||
|
|
||||||
|
grafana_service:
|
||||||
|
service.running:
|
||||||
|
- name: {{ server.service }}
|
||||||
|
- enable: true
|
||||||
|
- reload: true
|
||||||
|
- watch:
|
||||||
|
- file: /etc/grafana/grafana.ini
|
||||||
|
|
||||||
{%- endif %}
|
{%- endif %}
|
Loading…
Reference in a new issue