paulbsd-salt/states/telegraf/service.sls

17 lines
399 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "telegraf/map.jinja" import telegraf with context %}
telegraf-service-file:
file.managed:
- name: /etc/systemd/system/telegraf.service
2023-03-10 00:05:04 +01:00
- source: salt://telegraf/templates/telegraf.service.j2
2020-07-10 00:58:55 +02:00
- user: root
- group: root
- template: jinja
- watch_in:
- service: telegraf-service
telegraf-service:
service.running:
- name: telegraf
2023-03-10 00:05:04 +01:00
- enable: true