Puppet Class: confdroid_prometheus::firewall::iptables

Inherits:
confdroid_prometheus::params
Defined in:
manifests/firewall/iptables.pp

Summary

Class manages the firewall rules for the confdroid_prometheus module.

Overview

confdroid_prometheus::firewall::iptables.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)



6
7
8
9
10
11
12
13
14
15
16
# File 'manifests/firewall/iptables.pp', line 6

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