updated telegraf state

This commit is contained in:
Paul 2020-08-16 15:01:47 +02:00
parent 08a09c732f
commit 02099bd3a3

View File

@ -1,11 +1,12 @@
--- ---
{%- from "telegraf/map.jinja" import telegraf with context %} {%- from "telegraf/map.jinja" import telegraf with context %}
{% set archive_exclude_dir = './telegraf-' + telegraf.version %}
telegraf-archive-extract: telegraf-archive-extract:
archive.extracted: archive.extracted:
- name: {{ telegraf.release_dir }}/telegraf-{{ telegraf.version }} - name: {{ telegraf.release_dir }}/telegraf-{{ telegraf.version }}
- source: {{ telegraf.mirror }}/telegraf-{{ telegraf.version }}_{{ salt['grains.get']('kernel')|lower }}_{{ salt['grains.get']('osarch') }}.tar.gz - source: {{ telegraf.mirror }}/telegraf-{{ telegraf.version }}_{{ salt['grains.get']('kernel')|lower }}_{{ salt['grains.get']('osarch') }}.tar.gz
- enforce_toplevel: False - enforce_toplevel: False
- options: --transform 's|^\./telegraf|/|g' --exclude './telegraf/etc' --exclude './telegraf/usr/lib' --exclude './telegraf/var' --strip 2 - options: --transform 's|^\{{ archive_exclude_dir }}|/|g' --exclude '{{ archive_exclude_dir }}/etc' --exclude '{{ archive_exclude_dir }}/usr/lib' --exclude '{{ archive_exclude_dir }}/var' --strip 2
- 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