Puppet Class: confdroid_haproxy::firewall::iptables

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

Summary

manage firewall settings through cd_firewall or puppetlabs-firewall

Overview

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



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'manifests/firewall/iptables.pp', line 6

class confdroid_haproxy::firewall::iptables (

) inherits confdroid_haproxy::params {
  if ($fqdn == $hy_host_fqdn) and ($hy_manage_fw == true) {
    firewall { "${hy_fw_order_no}${hy_http_port} tcp port ${hy_http_port}":
      proto => 'tcp',
      dport => $hy_http_port,
      jump  => 'accept',
    }

    firewall { "${hy_fw_order_no}${hy_https_port} tcp port ${hy_https_port}":
      proto => 'tcp',
      dport => $hy_https_port,
      jump  => 'accept',
    }

    if $hy_show_stats == true {
      firewall { "${hy_fw_order_no}${hy_stats_port} tcp port ${hy_stats_port}":
        proto => 'tcp',
        dport => $hy_stats_port,
        jump  => 'accept',
      }
    }
  }
}