Skip to content

add option for removing cron job provided by distribution packages#289

Merged
kenyon merged 1 commit into
voxpupuli:masterfrom
gmenuel:disable-distro-cron
Jul 31, 2025
Merged

add option for removing cron job provided by distribution packages#289
kenyon merged 1 commit into
voxpupuli:masterfrom
gmenuel:disable-distro-cron

Conversation

@gmenuel
Copy link
Copy Markdown
Contributor

@gmenuel gmenuel commented May 11, 2022

Pull Request (PR) description

This PR aims at removing the system cron or systemd timer when the renew cron is managed by puppet (this doesn't handle certonly cron). If we don't do that on certains distro (for exemple Debian), a cron will be automaticaly added by the package and might renew the certificate before the puppet cron, and thus the puppet renew hooks won't be executed.

This Pull Request (PR) fixes the following issues

Fixes #164

@gmenuel gmenuel force-pushed the disable-distro-cron branch 3 times, most recently from ba093e6 to 4a38f2e Compare May 11, 2022 12:44
Comment thread manifests/renew.pp Outdated
@treydock
Copy link
Copy Markdown
Contributor

@gmenuel Please address the merge conflicts.

@treydock treydock added the enhancement New feature or request label Nov 16, 2022
@gmenuel gmenuel force-pushed the disable-distro-cron branch 2 times, most recently from 846846a to c104f29 Compare November 23, 2022 10:44
Comment thread spec/classes/letsencrypt_spec.rb Outdated
@gmenuel gmenuel force-pushed the disable-distro-cron branch from c104f29 to 34681cf Compare November 23, 2022 11:10
@gmenuel
Copy link
Copy Markdown
Contributor Author

gmenuel commented Nov 23, 2022

I've updated the cron file name for freeBSD. I've don't have a freeBSD to test that it is correct (and I'm not particulary familiar with it) so if anyone can check that this is correct it would be great :)

@gmenuel gmenuel force-pushed the disable-distro-cron branch from 34681cf to 1afbd1d Compare November 23, 2022 12:40
@gmenuel gmenuel force-pushed the disable-distro-cron branch 5 times, most recently from a14ccc3 to 6f1f266 Compare July 28, 2025 12:24
@gmenuel gmenuel requested a review from treydock July 30, 2025 06:38
@gmenuel
Copy link
Copy Markdown
Contributor Author

gmenuel commented Jul 30, 2025

If anyone is still interested by this PR, I rebased it yesterday.

Comment thread manifests/init.pp Outdated
@gmenuel gmenuel force-pushed the disable-distro-cron branch 4 times, most recently from 1161853 to 048911c Compare July 30, 2025 08:20
@gmenuel gmenuel force-pushed the disable-distro-cron branch from 048911c to 083456c Compare July 30, 2025 08:28
@kenyon kenyon changed the title add option for removing cron provided by distro pkgs add option for removing cron job provided by distribution packages Jul 31, 2025
@kenyon kenyon merged commit 3388959 into voxpupuli:master Jul 31, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/etc/cron.d/certbot cron file should be absent when manage_cron is set to true on Debian

5 participants