diff --git a/states/telegraf/install.sls b/states/telegraf/install.sls index 4621ea3..6bb36c9 100644 --- a/states/telegraf/install.sls +++ b/states/telegraf/install.sls @@ -9,11 +9,15 @@ telegraf-archive-extract: - skip_verify: True - archive_format: tar - if_missing: {{ telegraf.release_dir }}/telegraf-{{ telegraf.version }}/telegraf + - watch_in: + - service: telegraf-service telegraf-bin-symlink: file.symlink: - name: /usr/local/bin/telegraf - target: {{ telegraf.release_dir }}/telegraf-{{ telegraf.version }}/telegraf + - watch_in: + - service: telegraf-service telegraf-defaults-file: file.managed: @@ -23,4 +27,4 @@ telegraf-defaults-file: - group: root - template: jinja - watch_in: - - service: telegraf-service \ No newline at end of file + - service: telegraf-service