paulbsd-salt/states/gobackup/install.sls

18 lines
502 B
Plaintext
Raw Normal View History

2020-08-30 16:54:26 +02:00
---
{%- from "gobackup/map.jinja" import gobackup with context %}
gobackup-bin:
file.managed:
- name: {{ gobackup.install_dir }}/gobackup
- source: {{ gobackup.fetch_url }}/gobackup-{{ gobackup.os }}-{{ gobackup.arch }}
- user: root
- group: root
- skip_verify: True
2020-08-30 17:53:35 +02:00
- if_missing: {{ gobackup.install_dir }}/gobackup
gobackup-backups-path:
file.directory:
- name: {{ gobackup.config.models.gobackup.store_with.path }}
- user: root
- group: root
- mode: 700