Puppet Class: pgpool::config::ssl
- Defined in:
- manifests/config/ssl.pp
Overview
Class: pgpool::config::ssl
This class exposes the ssl settings for pgpool.
Parameters
- ssl
-
String. Enabling this enables ssl mode for pgpool. Defaults to
off
. - ssl_key
-
String. This is the path to the ssl key for the certificate to use. Defaults to .
- ssl_cert
-
String. This is the path to the ssl cert file for the certificate to use. Defaults to .
- ssl_ca_cert
-
String. This is the path to the ssl ca cert for ssl. Defaults to .
- ssl_ca_cert_dir
-
String. This is the path to the ssl ca certs for ssl. Defaults to .
Variables
N/A
Examples
class { ‘pgpool::config:ssl’:
ssl => 'on',
ssl_key => '/etc/pki/tls/private/mykey.pem',
ssl_cert => '/etc/pki/tls/certs/mycert.pem',
ssl_ca_cert => '/etc/pki/tls/CA/myca.pem',
}
Authors
Alex Schultz <aschultz@next-development.com>
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'manifests/config/ssl.pp', line 44
class pgpool::config::ssl (
$ssl = 'off',
$ssl_key = '',
$ssl_cert = '',
$ssl_ca_cert = '',
$ssl_ca_cert_dir = '',
) {
$ssl_config = {
'ssl' => { value => $ssl },
'ssl_key' => { value => $ssl_key },
'ssl_cert' => { value => $ssl_cert },
'ssl_ca_cert' => { value => $ssl_ca_cert },
'ssl_ca_cert_dir' => { value => $ssl_ca_cert_dir },
}
$ssl_defaults = {
ensure => present
}
create_resources(pgpool::config::val, $ssl_config, $ssl_defaults)
}
|