Files
confdroid_haproxy/manifests/firewall/iptables.pp
2025-02-14 11:36:23 +01:00

27 lines
777 B
Puppet

## cd_haproxy::firewall::iptables.pp
# Module name: cd_haproxy
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary manage firewall settings through cd_firewall or puppetlabs-firewall
###############################################################################
class cd_haproxy::firewall::iptables (
) inherits cd_haproxy::params {
if ($fqdn == $hy_host_fqdn) and ($hy_manage_fw == true) {
require cd_haproxy::main::files
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',
}
}
}