aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp6
1 files 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"],
}
}