aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-01-02 20:44:17 +0100
committerSilvio Rhatto <rhatto@riseup.net>2011-01-02 20:44:17 +0100
commit027fa31590deca283c67fac1ef2449df63ee35c1 (patch)
tree2c108f2d5fb29a7e27bc45e6ce004828688255b6 /manifests
parentf4905e39e09ce720aece3e2bc36fc94fb2614606 (diff)
downloadpuppet-ssl-027fa31590deca283c67fac1ef2449df63ee35c1.tar.gz
puppet-ssl-027fa31590deca283c67fac1ef2449df63ee35c1.tar.bz2
Adding ssl-cert-check
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp21
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 {