up2date
This commit is contained in:
7
restic/client.sls
Normal file
7
restic/client.sls
Normal file
@@ -0,0 +1,7 @@
|
||||
{% from "restic/map.jinja" import url with context %}
|
||||
|
||||
'download restic':
|
||||
cmd.run:
|
||||
- name: 'wget {{url}} -O - | bzip2 -cd > /bin/restic ; chmod +x /bin/restic'
|
||||
- unless: stat /bin/restic
|
||||
|
||||
6
restic/map.jinja
Normal file
6
restic/map.jinja
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
{% if salt.grains.get('cpuarch').startswith('arm') %}
|
||||
{% set url = 'https://github.com/restic/restic/releases/download/v0.9.6/restic_0.9.6_linux_arm.bz2' %}
|
||||
{% else %}
|
||||
{% set url = 'https://github.com/restic/restic/releases/download/v0.9.6/restic_0.9.6_linux_amd64.bz2' %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user