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

20 lines
650 B
Plaintext

---
{%- from "qrz/map.jinja" import qrz with context %}
qrz-archive-extract:
archive.extracted:
- name: {{ qrz.release_dir }}/qrz-{{ qrz.version }}
- source: {{ qrz.mirror }}/{{ qrz.version }}/qrz-{{ qrz.version }}-{{ qrz.os }}-{{ qrz.arch }}.tar.gz
- skip_verify: True
- enforce_toplevel: False
- if_missing: {{ qrz.release_dir }}/qrz-{{ qrz.version }}
- watch_in:
- service: qrz-service
qrz-binary-symlink:
file.symlink:
- name: {{ qrz.install_dir }}/qrz
- target: {{ qrz.release_dir }}/qrz-{{ qrz.version }}
- require:
- archive: qrz-archive-extract
- watch_in:
- service: qrz-service