From 0e07b152ce987eb006319fffb7bb572d5cfdc69c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 25 Nov 2011 13:33:56 -0200 Subject: Fixing ssl::check parameters --- manifests/init.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 2395e5c..e368530 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -33,14 +33,14 @@ class ssl { define check($port = '443', $interval = '60', $email = 'root', $hour = '0', $minute = '0', $weekday = '0', - $file = false) { + $file = false, $ensure = present) { $ssl_cert_check = "/usr/local/bin/ssl-cert-check -a -q -x ${interval} -e ${email}" $command = $file ? { false => "$ssl_cert_check -s ${name} -p ${port}", true => "$ssl_cert_check -c /etc/ssl/certs/cert.crt", - default => "$ssl_cert_check -c ${file} -q -x ${interval} -e ${email}", + default => "$ssl_cert_check -c ${file}", } cron { "ssl-cert-check-${name}": @@ -49,7 +49,7 @@ class ssl { hour => $hour, minute => $minute, weekday => $weekday, - ensure => present, + ensure => $ensure, require => File["/usr/local/bin/ssl-cert-check"], } } -- cgit v1.2.3