bundlewrap/bundles/openhab/items.py
2021-11-10 01:25:48 +01:00

36 lines
795 B
Python

directories = {
'/var/lib/openhab': {
'owner': 'openhab',
'group': 'openhab',
'needs': [
'zfs_dataset:tank/openhab/data',
'pkg_apt:openhab',
],
'triggers': [
'svc_systemd:openhab:restart',
],
},
'/etc/openhab': {
'owner': 'openhab',
'group': 'openhab',
'needs': [
'zfs_dataset:tank/openhab/config',
'pkg_apt:openhab',
],
'triggers': [
'svc_systemd:openhab:restart',
],
}
}
svc_systemd = {
'openhab': {
'needs': [
'pkg_apt:openhab',
'directory:/var/lib/openhab',
'zfs_dataset:tank/openhab/config',
'zfs_dataset:tank/openhab/data',
],
}
}