Add email notifications for failed certbot runs

Based on https://wiki.archlinux.org/index.php/Systemd/Timers#MAILTO

This can easily be used by other services, with one line added to the
[Unit] section of a service:

OnFailure=status-email-ops@%n.service

Refs #3
This commit is contained in:
Greg Karékinian
2019-06-20 12:46:27 +02:00
parent a7eb12d0eb
commit 3a693efcd6
7 changed files with 92 additions and 19 deletions

View File

@@ -4,7 +4,7 @@ maintainer_email 'mail@kosmos.org'
license 'MIT'
description 'The Kosmos base cookbook'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.2.0'
version '0.3.0'
chef_version '>= 14.0' # Uses the new sudo resource
depends 'apt'