Files
confdroid_haproxy/manifests/firewall/iptables.pp

27 lines
777 B
ObjectPascal
Raw Normal View History

2018-04-24 15:32:11 +02:00
## 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
2018-12-10 14:36:54 +01:00
firewall { "${hy_fw_order_no}${hy_http_port} tcp port ${hy_http_port}":
proto => 'tcp',
dport => $hy_http_port,
2025-01-27 11:42:25 +01:00
jump => 'accept',
2018-04-24 15:32:11 +02:00
}
2018-12-10 14:36:54 +01:00
firewall { "${hy_fw_order_no}${hy_https_port} tcp port ${hy_https_port}":
proto => 'tcp',
dport => $hy_https_port,
2025-01-27 11:42:25 +01:00
jump => 'accept',
2018-04-24 15:32:11 +02:00
}
}
}