From 37f967003fd3ea7c2618bc21e766665202812942 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Tue, 8 Nov 2022 11:07:43 +0100 Subject: [PATCH] added cleanup task to some states --- states/coronafana/install.sls | 6 ++++++ states/dip/install.sls | 8 +++++++- states/fuelprices/install.sls | 6 ++++++ states/weather/install.sls | 8 +++++++- 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/states/coronafana/install.sls b/states/coronafana/install.sls index 3707d95..1ed6af8 100644 --- a/states/coronafana/install.sls +++ b/states/coronafana/install.sls @@ -14,3 +14,9 @@ coronafana-binary-symlink: - target: {{ coronafana.release_dir }}/coronafana-{{ coronafana.version }} - require: - archive: coronafana-archive-extract + +coronafana-cleanup: + software.cleanup: + - name: coronafana + - path: {{ coronafana.release_dir }} + - version: "{{ coronafana.version }}" diff --git a/states/dip/install.sls b/states/dip/install.sls index 1833319..fd06904 100644 --- a/states/dip/install.sls +++ b/states/dip/install.sls @@ -17,4 +17,10 @@ dip-binary-symlink: - require: - archive: dip-archive-extract - watch_in: - - service: dip-service \ No newline at end of file + - service: dip-service + +dip-cleanup: + software.cleanup: + - name: dip + - path: {{ dip.release_dir }} + - version: "{{ dip.version }}" \ No newline at end of file diff --git a/states/fuelprices/install.sls b/states/fuelprices/install.sls index 9318965..c268d3b 100644 --- a/states/fuelprices/install.sls +++ b/states/fuelprices/install.sls @@ -14,3 +14,9 @@ fuelprices-binary-symlink: - target: {{ fuelprices.release_dir }}/fuelprices-{{ fuelprices.version }} - require: - archive: fuelprices-archive-extract + +fuelprices-cleanup: + software.cleanup: + - name: fuelprices + - path: {{ fuelprices.release_dir }} + - version: "{{ fuelprices.version }}" diff --git a/states/weather/install.sls b/states/weather/install.sls index 59cad5c..41adc4b 100644 --- a/states/weather/install.sls +++ b/states/weather/install.sls @@ -13,4 +13,10 @@ weather-binary-symlink: - name: {{ weather.install_dir }}/weather - target: {{ weather.release_dir }}/weather-{{ weather.version }} - require: - - archive: weather-archive-extract \ No newline at end of file + - archive: weather-archive-extract + +weather-cleanup: + software.cleanup: + - name: weather + - path: {{ weather.release_dir }} + - version: "{{ weather.version }}" \ No newline at end of file