diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-01-02 20:44:17 +0100 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-01-02 20:44:17 +0100 |
commit | 027fa31590deca283c67fac1ef2449df63ee35c1 (patch) | |
tree | 2c108f2d5fb29a7e27bc45e6ce004828688255b6 /manifests | |
parent | f4905e39e09ce720aece3e2bc36fc94fb2614606 (diff) | |
download | puppet-ssl-027fa31590deca283c67fac1ef2449df63ee35c1.tar.gz puppet-ssl-027fa31590deca283c67fac1ef2449df63ee35c1.tar.bz2 |
Adding ssl-cert-check
Diffstat (limited to 'manifests')
-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 { |