bundles/zfs: introduce zfs-snapshot-backups, enable backups for nodes which need zfs-snapshot-backups
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-05-15 20:32:23 +02:00
parent 93e36156a0
commit 479b730be4
Signed by: kunsi
GPG key ID: 12E3D2136B818350
11 changed files with 96 additions and 18 deletions

View file

@ -11,6 +11,17 @@ directories = {
},
}
files = {
'/etc/zfs-snapshot-backup-pre.d/50-influxdb': {
'content': '#!/bin/sh\nsystemctl stop influxdb',
'mode': '0755',
},
'/etc/zfs-snapshot-backup-post.d/50-influxdb': {
'content': '#!/bin/sh\nsystemctl start influxdb',
'mode': '0755',
},
}
svc_systemd = {
'influxdb': {

View file

@ -15,6 +15,11 @@ defaults = {
},
},
},
'backups': {
'paths': {
'/var/lib/influxdb',
},
},
'icinga2_api': {
'telegraf': {
'services': {