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

Support for Managing Anacron #129

Open
jplindquist opened this issue Feb 6, 2024 · 1 comment
Open

Support for Managing Anacron #129

jplindquist opened this issue Feb 6, 2024 · 1 comment

Comments

@jplindquist
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7+
  • Ruby:
  • Distribution: RedHat Based (RHEL, CentOS, AlmaLinux) 7+
  • Module version: 4.1.0+

Would it be possible (or accepted even) to add support for managing /etc/anacrontab on RHEL based systems if we'd like to be able to set things there?

/etc/anacrontab
and according to https://man7.org/linux/man-pages/man5/anacrontab.5.html

# /etc/anacrontab: configuration file for anacron

# See anacron(8) and anacrontab(5) for details.

SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# the maximal random delay added to the base delay of the jobs
RANDOM_DELAY=45
# the jobs will be started during the following hours only
START_HOURS_RANGE=3-22

#period in days   delay in minutes   job-identifier   command
1	5	cron.daily		nice run-parts /etc/cron.daily
7	25	cron.weekly		nice run-parts /etc/cron.weekly
@monthly 45	cron.monthly		nice run-parts /etc/cron.monthly

I'm happy to make an attempt at adding this type of support if it would be accepted.

@kenyon
Copy link
Member

kenyon commented Feb 7, 2024

Likely possible, but may I suggest, as an alternative approach, using our systemd module to manage systemd timer and service units, which I think has all of the capabilities of anacron, and other benefits.

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

No branches or pull requests

2 participants