paulbsd-salt/states/coronafana/install.sls
2020-07-10 00:58:55 +02:00

16 lines
713 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 }}
- require:
- archive: coronafana-archive-extract