paulbsd-salt/states/coronafana/install.sls

24 lines
879 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{% 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
2020-09-12 17:41:35 +02:00
- skip_verify: true
- enforce_toplevel: false
2020-07-10 00:58:55 +02:00
- 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
2020-07-10 00:58:55 +02:00
- require:
2021-08-19 21:15:24 +02:00
- archive: coronafana-archive-extract
2022-11-08 11:07:43 +01:00
coronafana-cleanup:
software.cleanup:
- name: coronafana
- path: {{ coronafana.release_dir }}
- version: "{{ coronafana.version }}"