updated gobackup state

This commit is contained in:
Paul 2020-08-30 17:53:35 +02:00
parent be5cb6fcf0
commit 16977767ed
3 changed files with 22 additions and 9 deletions

View File

@ -4,12 +4,15 @@ gobackup:
fetch_url: https://paulbsd-pub.s3.fr-par.scw.cloud/gobackup
install_dir: /usr/local/bin
config_dir: /etc/gobackup
os: linux
arch: amd64
config:
user: gobackup
password: password
store:
type: local
keep: 3
path: /var/lib/gobackup
compress:
type: tgz
models:
gobackup:
store_with:
type: local
keep: 3
path: /var/lib/gobackup
compress_with:
type: tgz
databases: {}

View File

@ -7,4 +7,11 @@ gobackup-bin:
- user: root
- group: root
- skip_verify: True
- if_missing: {{ gobackup.install_dir }}/gobackup
- 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

View File

@ -0,0 +1,3 @@
# {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{%- from "gobackup/map.jinja" import gobackup with context %}
{{ gobackup.config|yaml(False) }}