3
0
Files
confdroid_prometheus/manifests/firewall/iptables.pp
2025-12-13 13:25:01 +01:00

17 lines
607 B
Puppet

# confdroid_prometheus::firewall::iptables.pp
# Module name: confdroid_prometheus
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages the firewall rules for the confdroid_prometheus module.
##############################################################################
class confdroid_prometheus::firewall::iptables (
) inherits confdroid_prometheus::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',
}
}
}