diff --git a/salt/states/borgbackup.sls b/salt/states/borgbackup.sls new file mode 100644 index 0000000..a86b5fe --- /dev/null +++ b/salt/states/borgbackup.sls @@ -0,0 +1,7 @@ +Add borgbackup bash wrapper: + file.managed: + - name: {{ salt['user.info']( pillar['username'] ).home }}/bin/borg.sh + - source: salt://files/borg.sh + - user: {{ pillar['username'] }} + - group: users + - mode: "0755"