bundlewrap/bundles/radicale/items.py
Franziska Kunsmann 6cd02dc563
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
bundles: move non-login users to items.py
2020-11-10 13:24:07 +01:00

47 lines
1,023 B
Python

directories = {
'/var/lib/radicale/collections': {
'owner': 'radicale',
'group': 'radicale',
'mode': '0700',
},
}
users = {
'radicale': {
'home': '/var/lib/radicale',
},
}
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',
},
},
}