Files
confdroid_postgresql/manifests/firewall/iptables.pp

18 lines
579 B
ObjectPascal
Raw Normal View History

2025-04-18 22:28:58 +02:00
## 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 {
2025-04-18 22:37:37 +02:00
if ($fqdn == $pl_server_fqdn) and ($pl_enable_fw == true) {
2025-04-19 00:13:22 +02:00
firewall { "${pl_fw_rule_order}${pl_fw_port} tcp port ${pl_fw_port}":
2025-04-19 00:16:22 +02:00
source => $pl_source_range,
2025-04-18 22:28:58 +02:00
proto => 'tcp',
dport => $pl_fw_port,
jump => 'accept',
}
}
}