bundles/cron: purge unwanted data from /etc/cron.d
This commit is contained in:
parent
c8ae22da8a
commit
f22b30e4fa
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
||||||
files = {}
|
files = {}
|
||||||
|
|
||||||
|
directories = {
|
||||||
|
'/etc/cron.d': {
|
||||||
|
'purge': True,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
for crontab, content in node.metadata.get('cron', {}).items():
|
for crontab, content in node.metadata.get('cron', {}).items():
|
||||||
files['/etc/cron.d/{}'.format(crontab)] = {
|
files['/etc/cron.d/{}'.format(crontab)] = {
|
||||||
'content': content + "\n",
|
'content': content + "\n",
|
||||||
|
|
Loading…
Reference in a new issue