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