3
0
This commit is contained in:
Arne Teuke
2025-10-18 12:30:47 +02:00
parent 42befb46c3
commit c2eca38b93
5 changed files with 80 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
# prometheus_cd::firewall::iptables.pp
# Module name: prometheus_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages the firewall rules for the prometheus_cd module.
##############################################################################
class prometheus_cd::firewall::iptables (
) inherits prometheus_cd::params {
if ($ps_prom_host == $fqdn) and ($ps_manage_fw == true) {
# main port
firewall { "${ps_fw_prefix}${$ps_main_port} main port":
proto => 'tcp',
dport => $ps_main_port,
jump => 'accept',
}
}
}