paulbsd-salt/states/rainloop/install.sls

19 lines
790 B
Plaintext
Raw Normal View History

2020-09-02 21:12:15 +02:00
---
{%- from "rainloop/map.jinja" import rainloop with context %}
rainloop-archive-extract:
archive.extracted:
2022-10-10 10:16:24 +02:00
- name: {{ rainloop.release_dir }}/{{ rainloop.release_filename }}-{{ rainloop.version }}
- source: {{ rainloop.mirror }}/v{{ rainloop.version }}/{{ rainloop.release_filename }}-{{ rainloop.version }}.zip
2020-09-02 21:12:15 +02:00
- skip_verify: true
- enforce_toplevel: false
- user: {{ rainloop.user }}
- group: {{ rainloop.group }}
2022-10-10 10:16:24 +02:00
- if_missing: {{ rainloop.release_dir }}/{{ rainloop.release_filename }}-{{ rainloop.version }}
2020-09-02 21:12:15 +02:00
rainloop-archive-symlink:
file.symlink:
- name: {{ rainloop.install_dir }}/rainloop
2022-10-10 10:16:24 +02:00
- target: {{ rainloop.release_dir }}/{{ rainloop.release_filename }}-{{ rainloop.version }}
2020-09-02 21:12:15 +02:00
- require:
- archive: rainloop-archive-extract