updated telegraf state
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5248eca8f3
commit
7b7b741aa2
@ -7,6 +7,13 @@ telegraf-config-dir:
|
||||
- group: root
|
||||
- mode: 700
|
||||
|
||||
telegraf-home-dir:
|
||||
file.directory:
|
||||
- name: /var/lib/telegraf
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 700
|
||||
|
||||
{% for cfg, value in telegraf.config.items() %}
|
||||
telegraf-config-{{ cfg }}-file:
|
||||
file.managed:
|
||||
|
@ -6,6 +6,7 @@ Documentation=https://github.com/influxdata/telegraf
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Environment="HOME=/var/lib/telegraf"
|
||||
EnvironmentFile=-/etc/default/telegraf
|
||||
ExecStart=/usr/local/bin/telegraf --config /etc/telegraf/%i.conf
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
Loading…
Reference in New Issue
Block a user