Puppet Class: openssl::certificates

Defined in:
manifests/certificates.pp

Summary

Generates x509 certificates based on class parameters

Overview

Examples:

basic usage

class { 'openssl::certificate':
  x509_certs => { '/path/to/certificate.crt' => {  ensure      => 'present',
                                                   password    => 'j(D$',
                                                   template    => '/other/path/to/template.cnf',
                                                   private_key => '/there/is/my/private.key',
                                                   days        => 4536,
                                                   force       => false,},
                  '/a/other/certificate.crt' => {  ensure      => 'present', },
                }
}

Parameters:

  • x509_certs (Hash) (defaults to: {})


17
18
19
20
21
22
23
# File 'manifests/certificates.pp', line 17

class openssl::certificates (
  Hash $x509_certs = {},
) {
  if $x509_certs {
    ensure_resources('openssl::certificate::x509', $x509_certs)
  }
}