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

@@ -0,0 +1,17 @@
## postgresql_cd::firewall::iptables.pp
# Module name: postgresql_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages the alloy iptables
###############################################################################
class postgresql_cd::firewall::iptables (
) inherits postgresql_cd::params {
if ($fqdn == $ma_server_fqdn) and ($pl_enable_fw == true) {
firewall { "${pl_fw_rule_order}${pl_fw_port} tcp port ${pl_fw_port}":
source => $pl_source_range,
proto => 'tcp',
dport => $pl_fw_port,
jump => 'accept',
}
}
}