diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-05-23 11:42:15 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-05-23 11:42:15 -0300 |
commit | e3423b0ba6738b85260c90f7bb340b44563dd9d9 (patch) | |
tree | d54b7c8966f1fb26c01fae9bf18c63fd4072c612 /manifests | |
parent | d6b9a419b5f130c25d2e4800ac68a0bd4342a09d (diff) | |
download | puppet-ssl-e3423b0ba6738b85260c90f7bb340b44563dd9d9.tar.gz puppet-ssl-e3423b0ba6738b85260c90f7bb340b44563dd9d9.tar.bz2 |
Check param into ssl::cert
Diffstat (limited to 'manifests')
-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, + } + } } |