paulbsd-salt/states/rclone/install.sls

24 lines
822 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "rclone/map.jinja" import rclone with context %}
rclone-archive-extract:
archive.extracted:
- name: {{ rclone.release_dir }}
2021-11-14 13:37:49 +01:00
- source: {{ rclone.mirror }}/v{{ rclone.version }}/rclone-v{{ rclone.version }}-{{ rclone.os }}-{{ rclone.arch }}.zip
2020-09-12 17:41:35 +02:00
- skip_verify: true
- enforce_toplevel: false
2021-11-14 13:37:49 +01:00
- if_missing: {{ rclone.release_dir }}/rclone-v{{ rclone.version }}-{{ rclone.os }}-{{ rclone.arch }}/rclone
2020-07-10 00:58:55 +02:00
rclone-binary-symlink:
file.symlink:
- name: /usr/local/bin/rclone
2021-11-14 13:37:49 +01:00
- target: {{ rclone.release_dir }}/rclone-v{{ rclone.version }}-{{ rclone.os }}-{{ rclone.arch }}/rclone
2020-09-12 17:41:35 +02:00
- force: true
2020-07-10 00:58:55 +02:00
- require:
- archive: rclone-archive-extract
2021-11-14 13:37:49 +01:00
rclone-cleanup:
software.cleanup:
- name: rclone
- path: {{ rclone.release_dir }}
2021-12-29 15:45:48 +01:00
- version: "v{{ rclone.version }}"