--- {%- from "vector/map.jinja" import vector with context %} vector-archive-extract: archive.extracted: - name: {{ vector.release_dir }}/vector-{{ vector.version }} - source: {{ vector.mirror }}/v{{ vector.version }}/vector-{{ vector.version }}-{{ vector.arch }}-unknown-{{ vector.os }}-{{ vector.variant }}.tar.gz - skip_verify: true - enforce_toplevel: false - options: > --strip 2 - if_missing: {{ vector.release_dir }}/vector-{{ vector.version }}/bin/vector # - watch_in: # - service: vector-service vector-binary-symlink: file.symlink: - name: /usr/local/bin/vector - target: {{ vector.release_dir }}/vector-{{ vector.version }}/bin/vector - force: true - require: - archive: vector-archive-extract # - watch_in: # - service: vector-service vector-cleanup: software.cleanup: - name: vector - path: {{ vector.release_dir }} - version: "v{{ vector.version }}"