bundles/cron: purge unwanted data from /etc/cron.d

This commit is contained in:
Franzi 2020-08-30 11:14:10 +02:00
parent c8ae22da8a
commit f22b30e4fa
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -1,5 +1,11 @@
files = {}
directories = {
'/etc/cron.d': {
'purge': True,
},
}
for crontab, content in node.metadata.get('cron', {}).items():
files['/etc/cron.d/{}'.format(crontab)] = {
'content': content + "\n",