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

16 lines
648 B
Plaintext

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