WIP: Replace the certbot systemd unit with a cron job with notifications #68
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "bugfix/3-certbot_email_notifications"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Uses cronic (https://habilis.net/cronic/) to filter out the stdout and send a sensible email to ops@kosmos.org when renewal fails
Closes #3
This has been tested on andromeda
I checked, no other change is needed for cron jobs so far, the backup gem is already successfully sending emails when warnings or errors occur (independently of using cron).
Doing the same thing with systemd timers would be very complex for no reason: https://wiki.archlinux.org/index.php/Systemd/Timers#MAILTO
Replace the certbot systemd unit with a cron job with notificationsto WIP: Replace the certbot systemd unit with a cron job with notificationsDamnit, certbot is using stderr to output warnings, so we got an email when it ran at midnight:
Adding the
-qswitch should fix it:What's complex about that? Looks very straight-forward to me, and can be done once for all our machines via a cookbook.
You're right, I misunderstood, that would work with the cerbot systemd timer as it is (
systemctl status --full certbotwill contain the previous error). I'm going to close this and reopen another pull request that does it with aOnFailuresection on the certbot service insteadPull request closed