paulbsd-salt/states/weather/install.sls

24 lines
802 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 }}
- force: true
2020-07-10 00:58:55 +02:00
- require:
2022-11-08 11:07:43 +01:00
- archive: weather-archive-extract
weather-cleanup:
software.cleanup:
- name: weather
- path: {{ weather.release_dir }}
- version: "{{ weather.version }}"