Franziska Kunsmann
8301664d9a
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
33 lines
688 B
Python
33 lines
688 B
Python
repo.libs.tools.require_bundle(node, 'zfs')
|
|
|
|
directories = {
|
|
'/var/lib/influxdb': {
|
|
'owner': 'influxdb',
|
|
'group': 'influxdb',
|
|
'mode': '0755',
|
|
'needs': {
|
|
'pkg_apt:influxdb2',
|
|
},
|
|
},
|
|
}
|
|
|
|
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': {
|
|
'needs': {
|
|
'directory:/var/lib/influxdb',
|
|
'pkg_apt:influxdb2',
|
|
},
|
|
},
|
|
}
|