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
a80adde56e
commit
fa60977155
@ -6,11 +6,9 @@ telegraf-config-dir:
|
|||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
- mode: 700
|
- mode: 700
|
||||||
- watch_in:
|
|
||||||
- service: telegraf-service
|
|
||||||
|
|
||||||
{% for cfg, value in telegraf.config.items() %}
|
{% for cfg, value in telegraf.config.items() %}
|
||||||
telegraf-config-file:
|
telegraf-config-{{ cfg }}-file:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: /etc/telegraf/{{ cfg }}.conf
|
- name: /etc/telegraf/{{ cfg }}.conf
|
||||||
- source: salt://telegraf/templates/telegraf.conf.j2
|
- source: salt://telegraf/templates/telegraf.conf.j2
|
||||||
|
@ -15,16 +15,12 @@ telegraf-archive-extract:
|
|||||||
- skip_verify: true
|
- skip_verify: true
|
||||||
- archive_format: tar
|
- archive_format: tar
|
||||||
- if_missing: {{ telegraf.release_dir }}/telegraf-{{ telegraf.version }}/telegraf
|
- if_missing: {{ telegraf.release_dir }}/telegraf-{{ telegraf.version }}/telegraf
|
||||||
- watch_in:
|
|
||||||
- service: telegraf-service
|
|
||||||
|
|
||||||
telegraf-bin-symlink:
|
telegraf-bin-symlink:
|
||||||
file.symlink:
|
file.symlink:
|
||||||
- name: /usr/local/bin/telegraf
|
- name: /usr/local/bin/telegraf
|
||||||
- target: {{ telegraf.release_dir }}/telegraf-{{ telegraf.version }}/telegraf
|
- target: {{ telegraf.release_dir }}/telegraf-{{ telegraf.version }}/telegraf
|
||||||
- force: true
|
- force: true
|
||||||
- watch_in:
|
|
||||||
- service: telegraf-service
|
|
||||||
|
|
||||||
telegraf-defaults-file:
|
telegraf-defaults-file:
|
||||||
file.managed:
|
file.managed:
|
||||||
@ -33,8 +29,6 @@ telegraf-defaults-file:
|
|||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- watch_in:
|
|
||||||
- service: telegraf-service
|
|
||||||
|
|
||||||
telegraf-cleanup:
|
telegraf-cleanup:
|
||||||
software.cleanup:
|
software.cleanup:
|
||||||
|
@ -7,12 +7,16 @@ telegraf-service-file:
|
|||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- watch_in:
|
|
||||||
- service: telegraf-service
|
|
||||||
|
|
||||||
{% for cfg, value in telegraf.config.items() %}
|
{% for cfg, value in telegraf.config.items() %}
|
||||||
telegraf-{{ cfg }}-service:
|
telegraf-{{ cfg }}-service:
|
||||||
service.running:
|
service.running:
|
||||||
- name: telegraf@{{ cfg }}
|
- name: telegraf@{{ cfg }}
|
||||||
- enable: true
|
- enable: true
|
||||||
|
- watch:
|
||||||
|
- archive: telegraf-archive-extract
|
||||||
|
- file: telegraf-service-file
|
||||||
|
- file: telegraf-bin-symlink
|
||||||
|
- file: telegraf-defaults-file
|
||||||
|
- file: telegraf-config-dir
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user