bundlewrap/bundles/radicale/items.py
Franzi a0702416a0
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles/radicale: introduce
2020-10-23 15:22:35 +02:00

42 lines
948 B
Python

directories = {
'/var/lib/radicale/collections': {
'owner': 'radicale',
'group': 'radicale',
'mode': '0700',
},
}
files = {
'/etc/systemd/system/radicale.service': {
'triggers': {
'action:systemd-reload',
'svc_systemd:radicale:restart',
},
},
'/etc/radicale/config': {
'triggers': {
'svc_systemd:radicale:restart',
},
},
'/etc/radicale/htpasswd': {
'content_type': 'mako',
'context': {
'users': node.metadata.get('radicale', {}).get('users', {}),
},
'triggers': {
'svc_systemd:radicale:restart',
},
},
}
svc_systemd = {
'radicale': {
'needs': {
'file:/etc/systemd/system/radicale.service',
'file:/etc/radicale/config',
'file:/etc/radicale/htpasswd',
'pkg_apt:python3-radicale',
},
},
}