paulbsd-salt/states/telegraf/config.sls

18 lines
429 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "telegraf/map.jinja" import telegraf with context %}
telegraf-config-dir:
file.directory:
- name: /etc/telegraf
- watch_in:
- service: telegraf-service
telegraf-config-file:
file.managed:
- name: /etc/telegraf/telegraf.conf
- source: salt://telegraf/telegraf.conf.j2
- user: root
- group: root
- mode: 600
- template: jinja
- watch_in:
- service: telegraf-service