paulbsd-salt/states/coronafana/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
879 B
Plaintext

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