From: Silvio Rhatto Date: Sat, 23 May 2015 14:42:15 +0000 (-0300) Subject: Check param into ssl::cert X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e3423b0ba6738b85260c90f7bb340b44563dd9d9;p=puppet-ssl.git Check param into ssl::cert --- diff --git a/manifests/cert.pp b/manifests/cert.pp index b977387..14e2005 100644 --- a/manifests/cert.pp +++ b/manifests/cert.pp @@ -7,6 +7,7 @@ define ssl::cert( $base = '/etc/ssl', $private = true, $main = false, + $check = true, ) { file { "${base}/certs/${name}.crt": ensure => $ensure, @@ -38,4 +39,10 @@ define ssl::cert( ensure => "${base}/private/${name}.pem", } } + + if ($check == true) { + ssl::check { "$name": + file => true, + } + } }