bundles/radicale: introduce
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
d76f69ab49
commit
a0702416a0
8 changed files with 112 additions and 2 deletions
41
bundles/radicale/items.py
Normal file
41
bundles/radicale/items.py
Normal file
|
@ -0,0 +1,41 @@
|
|||
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',
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue