3 ms·
Thanks for that explanation! pull vs push mode makes sense. Yes, none of the modules I've seen can efficiently work with configuration stored in a single file
by swalladge 10y ago
Thanks for that explanation! pull vs push mode makes sense.
Yes, none of the modules I've seen can efficiently work with configuration stored in a single file like crontabs. For example, the salt module needs to read and write the entire crontab for each state configuration.
The only problem I have against building a crontab from a template before placing them with the software is that it makes it difficult to keep things modular since all the cron jobs need to be defined in a single place (even if they are for totally different things).
- dozzie 10y agoUhm... Why do you want to put all the entries in a single file? Use templates of multiple files and put multiple files to /etc/cron.d.
- swalladge 10y agoHmm yeah that sounds like it could work better. Are there any disadvantages of using /etc/cron.d over crontab though? It seems that doing it that way would require root access on the client/minion, but I guess running as root is the most common anyway.