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
|
- group: root
|
||||||
- mode: 700
|
- mode: 700
|
||||||
|
|
||||||
|
telegraf-home-dir:
|
||||||
|
file.directory:
|
||||||
|
- name: /var/lib/telegraf
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: 700
|
||||||
|
|
||||||
{% for cfg, value in telegraf.config.items() %}
|
{% for cfg, value in telegraf.config.items() %}
|
||||||
telegraf-config-{{ cfg }}-file:
|
telegraf-config-{{ cfg }}-file:
|
||||||
file.managed:
|
file.managed:
|
||||||
|
@ -6,6 +6,7 @@ Documentation=https://github.com/influxdata/telegraf
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Environment="HOME=/var/lib/telegraf"
|
||||||
EnvironmentFile=-/etc/default/telegraf
|
EnvironmentFile=-/etc/default/telegraf
|
||||||
ExecStart=/usr/local/bin/telegraf --config /etc/telegraf/%i.conf
|
ExecStart=/usr/local/bin/telegraf --config /etc/telegraf/%i.conf
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
Loading…
Reference in New Issue
Block a user