Update to 2022-08-02 18:00

This commit is contained in:
Daniel Berteaud 2022-08-02 18:00:20 +02:00
parent 66a4b737df
commit e6e442e0fb
3 changed files with 16 additions and 0 deletions

View File

@ -53,3 +53,9 @@
when: nomad_unit.changed
tags: nomad
- name: Install backup hooks
template: src={{ item }}-backup.j2 dest=/etc/backup/{{ item }}.d/nomad mode=755
loop:
- pre
- post
tags: nomad

View File

@ -0,0 +1,5 @@
#!/bin/sh
set -eo pipefail
rm -f {{ nomad_root_dir }}/backup/nomad.snap

View File

@ -0,0 +1,5 @@
#!/bin/sh
set -eo pipefail
{{ nomad_root_dir }}/bin/nomad operator snapshot save {{ nomad_root_dir }}/backup/nomad.snap