TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What features/behaviour do you want in a cron management tool?

1 pointsby swalladgeover 8 years ago
Background: I have recently begun using configuration management software (specifically ansible, and more recently, salt). I also make use of cron and the cron module in salt. Unfortunately the current cron module is buggy, so I&#x27;m in the process of writing a new module for it, which I may expand out to a self-contained cron management software in future as well. You can follow development at https:&#x2F;&#x2F;github.com&#x2F;swalladge&#x2F;cron_ng .<p>I&#x27;m posting here looking for feedback on what features and behaviour you believe a cron management module should have. Things like:<p>- should it work with crontabs or the `&#x2F;etc&#x2F;cron.d` directory<p>- should it be allowed to work with lines already present in the crontab?<p>- what syntax would you want to be able to use to control it?<p>- what api points would you find useful? (eg. job-present, env-present)<p>- how should it manage environment variables in crontabs? (seeing as a command only sees variables defined _above_ the line)<p>- what are your most&#x2F;least favourite things about existing cron management tools&#x2F;modules?<p>- anything else!<p>For reference, the current cron module in salt has docs at https:&#x2F;&#x2F;docs.saltstack.com&#x2F;en&#x2F;latest&#x2F;ref&#x2F;modules&#x2F;all&#x2F;salt.modules.cron.html and https:&#x2F;&#x2F;docs.saltstack.com&#x2F;en&#x2F;latest&#x2F;ref&#x2F;states&#x2F;all&#x2F;salt.states.cron.html<p>This is not just for Salt users - if you use another configuration management tool or none at all, please voice your opinion as well!<p>Thanks

1 comment

dozzieover 8 years ago
&gt; I have recently begun using configuration management software (specifically ansible, and more recently, salt).<p>You were misled. Ansible and Salt are deployment scripts, not configuration management software, they&#x27;re only abused to do that task. CFEngine and Puppet are configuration management software.<p>&gt; For reference, the current cron module in salt [...]<p>The first part of that is a stateful command interface to what was just fine with declarative flat configuration file. It&#x27;s a downgrade in system administration, as you can do much less with some hidden magical state than with plain files.<p>The second part is reinventing crontab&#x27;s syntax, along with some conditionals that simply don&#x27;t belong there.<p>What are you actually aimig at? What bothers you with crontab files that made you try to fix them?
评论 #13275630 未加载