Puppet Class: prometheus_cd::firewall::iptables

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

Summary

Class manages the firewall rules for the prometheus_cd module.

Overview

prometheus_cd::firewall::iptables.pp Module name: prometheus_cd Author: Arne Teuke (arne_teuke@confdroid.com)



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

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