paulbsd-salt/states/rainloop/install.sls

19 lines
738 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:
- name: {{ rainloop.release_dir }}/rainloop-community-{{ rainloop.version }}
- source: {{ rainloop.mirror }}/v{{ rainloop.version }}/rainloop-community-{{ rainloop.version }}.zip
- skip_verify: true
- enforce_toplevel: false
- user: {{ rainloop.user }}
- group: {{ rainloop.group }}
- if_missing: {{ rainloop.release_dir }}/rainloop-community-{{ rainloop.version }}
rainloop-archive-symlink:
file.symlink:
- name: {{ rainloop.install_dir }}/rainloop
- target: {{ rainloop.release_dir }}/rainloop-community-{{ rainloop.version }}
- require:
- archive: rainloop-archive-extract