# 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', } } }