paulbsd-salt/states/gobackup/config.sls

21 lines
519 B
Plaintext
Raw Normal View History

2020-08-30 16:54:26 +02:00
---
{%- from "gobackup/map.jinja" import gobackup with context %}
gobackup-config-dir:
file.directory:
- name: {{ gobackup.config_dir }}
gobackup-config-file:
file.managed:
- name: {{ gobackup.config_dir }}/gobackup.yml
- source: salt://gobackup/templates/gobackup.yml.j2
2020-09-01 20:13:17 +02:00
- template: jinja
gobackup-task-schedule:
2021-12-12 10:44:13 +01:00
schedule.absent:
2020-09-01 20:13:17 +02:00
- name: gobackup-task-schedule
- function: cmd.run
- job_args:
- gobackup perform
2020-09-02 21:50:30 +02:00
- cron: '{{ gobackup.schedule }}'
2020-09-01 20:13:17 +02:00
- run_on_start: false