diff options
-rw-r--r-- | manifests/cert.pp | 7 |
1 files changed, 7 insertions, 0 deletions
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, + } + } } |