paulbsd-salt/states/telegraf/config.sls

22 lines
491 B
Plaintext

---
{%- from "telegraf/map.jinja" import telegraf with context %}
telegraf-config-dir:
file.directory:
- name: /etc/telegraf
- user: root
- group: root
- mode: 700
- watch_in:
- service: telegraf-service
telegraf-config-file:
file.managed:
- name: /etc/telegraf/telegraf.conf
- source: salt://telegraf/templates/telegraf.conf.j2
- user: root
- group: root
- mode: 600
- template: jinja
- watch_in:
- service: telegraf-service