bundlewrap/bundles/cron/items.py
2020-10-25 16:41:18 +01:00

16 lines
288 B
Python

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