Commit 08a5db34 authored by drebs's avatar drebs
Browse files

Allow for configuring PostgreSQL through `profile::postgis::config_entries`

parent 07a9ea93
Pipeline #66414 passed with stages
in 14 minutes and 20 seconds
......@@ -4,6 +4,7 @@ class profile::postgis (
Stdlib::IP::Address::V4::Nosubnet $listen_address = '127.0.0.1',
Boolean $tls = false,
String $domain = $::fqdn,
Hash $config_entries = {},
) {
# Support for TLS encryption
......@@ -20,7 +21,7 @@ class profile::postgis (
ssl_key_file => $ssl_key_file,
} ~> Service['postgresql']
$config_entries = {
$ssl_config_entries = {
ssl => 'on',
ssl_cert_file => $ssl_cert_file,
ssl_key_file => $ssl_key_file,
......@@ -33,7 +34,7 @@ class profile::postgis (
} else {
$config_entries = {}
$ssl_config_entries = {}
$server_require = undef
}
......@@ -43,7 +44,7 @@ class profile::postgis (
class { 'postgresql::server':
listen_addresses => $listen_address,
pg_hba_conf_defaults => false,
config_entries => $config_entries,
config_entries => merge($ssl_config_entries, $config_entries),
require => $server_require,
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment