2021-04-24 08:17:56 +00:00
|
|
|
repo.libs.tools.require_bundle(node, 'zfs')
|
|
|
|
|
|
|
|
directories = {
|
|
|
|
'/var/lib/influxdb': {
|
|
|
|
'owner': 'influxdb',
|
|
|
|
'group': 'influxdb',
|
2021-08-20 11:33:28 +00:00
|
|
|
'mode': '0755',
|
2021-04-24 08:17:56 +00:00
|
|
|
'needs': {
|
|
|
|
'pkg_apt:influxdb2',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2021-05-15 18:32:23 +00:00
|
|
|
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',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2021-04-24 08:17:56 +00:00
|
|
|
|
|
|
|
svc_systemd = {
|
|
|
|
'influxdb': {
|
|
|
|
'needs': {
|
|
|
|
'directory:/var/lib/influxdb',
|
|
|
|
'pkg_apt:influxdb2',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|