2020-06-01 09:54:28 +00:00
|
|
|
files = {}
|
|
|
|
|
2020-08-30 09:14:10 +00:00
|
|
|
directories = {
|
|
|
|
'/etc/cron.d': {
|
|
|
|
'purge': True,
|
2020-10-25 15:39:35 +00:00
|
|
|
'needs': {
|
|
|
|
'pkg_apt:',
|
|
|
|
},
|
2020-08-30 09:14:10 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2020-06-01 09:54:28 +00:00
|
|
|
for crontab, content in node.metadata.get('cron', {}).items():
|
|
|
|
files['/etc/cron.d/{}'.format(crontab)] = {
|
|
|
|
'content': content + "\n",
|
|
|
|
}
|