aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-11-25 13:33:56 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-11-25 13:33:56 -0200
commit0e07b152ce987eb006319fffb7bb572d5cfdc69c (patch)
tree1e9084e9ed50940297f02f440cb28af1370c85de /manifests
parent8d7db73ccd3299001da9a2fc9429838cdb209c70 (diff)
downloadpuppet-ssl-0e07b152ce987eb006319fffb7bb572d5cfdc69c.tar.gz
puppet-ssl-0e07b152ce987eb006319fffb7bb572d5cfdc69c.tar.bz2
Fixing ssl::check parameters
Diffstat (limited to 'manifests')
-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"],
}
}