2020-10-23 13:22:35 +00:00
|
|
|
directories = {
|
|
|
|
'/var/lib/radicale/collections': {
|
|
|
|
'owner': 'radicale',
|
|
|
|
'group': 'radicale',
|
|
|
|
'mode': '0700',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2020-11-10 12:23:22 +00:00
|
|
|
users = {
|
|
|
|
'radicale': {
|
|
|
|
'home': '/var/lib/radicale',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2020-10-23 13:22:35 +00:00
|
|
|
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': {
|
2021-02-18 17:12:25 +00:00
|
|
|
'users': node.metadata.get('radicale/users', {}),
|
2020-10-23 13:22:35 +00:00
|
|
|
},
|
|
|
|
'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',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|