From 0fc13c478d9a1f0796c030002095e60c50755535 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sun, 14 Nov 2021 13:35:52 +0100 Subject: [PATCH] updated dkron state --- states/dkron/install.sls | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/states/dkron/install.sls b/states/dkron/install.sls index 3fa6367..9059d07 100644 --- a/states/dkron/install.sls +++ b/states/dkron/install.sls @@ -6,20 +6,20 @@ dkron-user: dkron-archive-extract: archive.extracted: - - name: {{ dkron.release_dir }}/dkron_{{ dkron.version }} + - name: {{ dkron.release_dir }}/dkron-{{ dkron.version }} - source: {{ dkron.mirror }}/v{{ dkron.version }}/dkron_{{ dkron.version }}_{{ dkron.os }}_{{ dkron.arch }}.tar.gz - user: {{ dkron.runuser }} - enforce_toplevel: false - skip_verify: true - archive_format: tar - - if_missing: {{ dkron.release_dir }}/dkron_{{ dkron.version }} + - if_missing: {{ dkron.release_dir }}/dkron-{{ dkron.version }} - watch_in: - service: dkron-service dkron-bin-symlink: file.symlink: - name: {{ dkron.install_dir }}/dkron - - target: {{ dkron.release_dir }}/dkron_{{ dkron.version }} + - target: {{ dkron.release_dir }}/dkron-{{ dkron.version }} - user: {{ dkron.runuser }} - watch_in: - service: dkron-service @@ -29,4 +29,10 @@ dkron-data-dir: - name: {{ dkron.config.get('data-dir') }} - user: {{ dkron.runuser }} - watch_in: - - service: dkron-service \ No newline at end of file + - service: dkron-service + +dkron-cleanup: + software.cleanup: + - name: dkron + - path: {{ dkron.release_dir }} + - version: {{ dkron.version }} \ No newline at end of file