3
0

adds service control

This commit is contained in:
Arne Teuke
2025-04-18 22:28:58 +02:00
parent 2cdfd93708
commit c43ed4db0f
5 changed files with 69 additions and 0 deletions

View File

@@ -7,6 +7,10 @@
# @param [string] reqpackages_client the packages for the client
# @param [string] pkg_ensure which version of the packages to install, i.e.
# 'latest', 'present' '13.20',
# @param [string] pl_fw_rule_order the prefix for the firewall rule
# @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 [boolean] pl_enable_fw whether to enable the firewall
# @summary Class contains all parameters for the postgresql_cd module.
##############################################################################
class postgresql_cd::params (
@@ -18,6 +22,11 @@ class postgresql_cd::params (
String $reqpackages_client = 'postgresql',
String $pkg_ensure = 'latest',
# firewall
String $pl_fw_rule_order = '50',
String $pl_fw_port = '5432',
String $pl_source_range = '0.0.0.0/0',
Boolean $pl_enable_fw = true,
) {
$fqdn = $facts['networking']['fqdn']
@@ -25,6 +34,9 @@ class postgresql_cd::params (
$os_name = $facts['os']['name']
$os_release = $facts['os']['release']['major']
# Service
$pl_service = 'postgresql'
# includes must be last
include postgresql_cd::main::config
}