3
0

add file control for postgresql.conf

This commit is contained in:
Arne Teuke
2025-04-19 12:20:54 +02:00
parent 88ccbb2d51
commit 9989735dc8
2 changed files with 6 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
# @param [string] pl_fw_port the port to use for service and firewall # @param [string] pl_fw_port the port to use for service and firewall
# @param [string] pl_source_range the source range for allowed clients # @param [string] pl_source_range the source range for allowed clients
# @param [boolean] pl_enable_fw whether to enable the firewall # @param [boolean] pl_enable_fw whether to enable the firewall
# @param [string] pl_listen_address which address should the service listen on
# @summary Class contains all parameters for the postgresql_cd module. # @summary Class contains all parameters for the postgresql_cd module.
############################################################################## ##############################################################################
class postgresql_cd::params ( class postgresql_cd::params (
@@ -28,6 +29,9 @@ class postgresql_cd::params (
String $pl_source_range = '0.0.0.0/0', String $pl_source_range = '0.0.0.0/0',
Boolean $pl_enable_fw = true, Boolean $pl_enable_fw = true,
# main config
String $pl_listen_address = '*',
) { ) {
$fqdn = $facts['networking']['fqdn'] $fqdn = $facts['networking']['fqdn']
$domain = $facts['networking']['domain'] $domain = $facts['networking']['domain']

View File

@@ -57,7 +57,7 @@
# - Connection Settings - # - Connection Settings -
#listen_addresses = 'localhost' # what IP address(es) to listen on; listen_addresses = '<%= @pl_listen_address %>' # what IP address(es) to listen on;
# comma-separated list of addresses; # comma-separated list of addresses;
# defaults to 'localhost'; use '*' for all # defaults to 'localhost'; use '*' for all
# (change requires restart) # (change requires restart)
@@ -548,7 +548,7 @@ log_rotation_size = 0 # Automatic rotation of logfiles will
# %q = stop here in non-session # %q = stop here in non-session
# processes # processes
# %% = '%' # %% = '%'
# e.g. '<%u%%%d>' # e.g. '<<%u%%%d>'
#log_lock_waits = off # log lock waits >= deadlock_timeout #log_lock_waits = off # log lock waits >= deadlock_timeout
#log_parameter_max_length = -1 # when logging statements, limit logged #log_parameter_max_length = -1 # when logging statements, limit logged
# bind-parameter values to N bytes; # bind-parameter values to N bytes;