diff options
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 93f2693..bde758a 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -22,6 +22,27 @@ class ssl { source => "puppet://$server/files/keys/ssl/cert.pem", require => File["/etc/ssl/private"], } + + file { "/usr/local/bin/ssl-cert-check": + ensure => present, + owner => "root", + group => "root", + mode => 755, + source => "puppet://$server/modules/ssl/ssl-cert-check", + } + + define check($port = '443', $interval = '60', $email = 'root', + $hour = '0', $minute = '0', $weekday = '0') { + cron { "ssl-cert-check-${name}": + command => "ssl-cert-check -a -s ${name} -p ${port} -q -x ${interval} -e ${email}", + user => root, + hour => $hour, + minute => $minute, + weekday => $weekday, + ensure => present, + require => File["/usr/local/bin/ssl-cert-check"], + } + } } class ssl::mail inherits ssl { |