3
0

add variables

This commit is contained in:
Arne Teuke
2025-04-19 12:34:50 +02:00
parent 9989735dc8
commit 95466322ad
2 changed files with 7 additions and 6 deletions

View File

@@ -12,6 +12,8 @@
# @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 # @param [string] pl_listen_address which address should the service listen on
# @param [string] pl_listen_port which port should the service listen on
# @param [string] pl_max_conn maximum connections the service will accept
# @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 (
@@ -31,6 +33,8 @@ class postgresql_cd::params (
# main config # main config
String $pl_listen_address = '*', String $pl_listen_address = '*',
String $pl_listen_port = '5432',
String $pl_max_conn = '100',
) { ) {
$fqdn = $facts['networking']['fqdn'] $fqdn = $facts['networking']['fqdn']

View File

@@ -57,12 +57,9 @@
# - Connection Settings - # - Connection Settings -
listen_addresses = '<%= @pl_listen_address %>' # what IP address(es) to listen on; listen_addresses = '<%= @pl_listen_address %>'
# comma-separated list of addresses; port = <%= @pl_listen_port %>
# defaults to 'localhost'; use '*' for all max_connections = <%= @pl_max_conn %>
# (change requires restart)
#port = 5432 # (change requires restart)
max_connections = 100 # (change requires restart)
#superuser_reserved_connections = 3 # (change requires restart) #superuser_reserved_connections = 3 # (change requires restart)
#unix_socket_directories = '/var/run/postgresql, /tmp' # comma-separated list of directories #unix_socket_directories = '/var/run/postgresql, /tmp' # comma-separated list of directories
# (change requires restart) # (change requires restart)