paulbsd-salt/states/fuelprices/install.sls
Paul Lecuq 1a38f6afa5
All checks were successful
continuous-integration/drone/push Build is passing
fix in deployment process for some soft
2023-06-23 08:57:12 +02:00

24 lines
880 B
Plaintext

---
{%- from "fuelprices/map.jinja" import fuelprices with context %}
fuelprices-archive-extract:
archive.extracted:
- name: {{ fuelprices.release_dir }}/fuelprices-{{ fuelprices.version }}
- source: {{ fuelprices.mirror }}/{{ fuelprices.version }}/fuelprices-{{ fuelprices.version }}-{{ fuelprices.os }}-{{ fuelprices.arch }}.tar.gz
- skip_verify: true
- enforce_toplevel: false
- if_missing: {{ fuelprices.release_dir }}/fuelprices-{{ fuelprices.version }}
fuelprices-binary-symlink:
file.symlink:
- name: {{ fuelprices.install_dir }}/fuelprices
- target: {{ fuelprices.release_dir }}/fuelprices-{{ fuelprices.version }}
- force: true
- require:
- archive: fuelprices-archive-extract
fuelprices-cleanup:
software.cleanup:
- name: fuelprices
- path: {{ fuelprices.release_dir }}
- version: "{{ fuelprices.version }}"