paulbsd-salt/states/weather/install.sls

16 lines
648 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- 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
2020-09-12 17:41:35 +02:00
- skip_verify: true
- enforce_toplevel: false
2020-07-10 00:58:55 +02:00
- 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