Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compare with cron_core ? #82

Open
pillarsdotnet opened this issue May 5, 2020 · 2 comments
Open

Compare with cron_core ? #82

pillarsdotnet opened this issue May 5, 2020 · 2 comments
Labels

Comments

@pillarsdotnet
Copy link
Contributor

I notice that cron_core is included with puppet-agent whereas this module must be explicitly loaded.

Please provide a comparison between the two modules, noting which is preferred for different use-cases.

@mfuhrmann
Copy link

Yeah. The differences are not clear or good to find (I didn't find anything).

@alexjfisher
Copy link
Member

The cron type (now in cron_core, but formally a builtin type), manages the crontabs of users. eg. all cron resources with user => root will end up in a single crontab (/var/spool/cron/root on EL7 at least).

The type inserts some comments with warnings to not mess with the file manually.

# HEADER: This file was autogenerated at 2021-03-31 16:26:03 +0100 by puppet.
# HEADER: While it can still be managed manually, it is definitely not recommended.
# HEADER: Note particularly that the comments starting with 'Puppet Name' should
# HEADER: not be deleted, as doing so could cause duplicate cron jobs.
# Puppet Name: foo
0 2 * * 5 foo.sh
# Puppet Name: bar
* 15 1 * * bar.sh

In contrast, this module creates cron entries by creating separate files under /etc/cron.d. I think some people prefer this approach.

PRs to the docs, (maybe a rationale section??), always welcome. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants