Files
confdroid_haproxy/manifests/firewall/iptables.pp

23 lines
730 B
ObjectPascal
Raw Normal View History

2025-03-02 16:28:57 +01:00
## haproxy_cd::firewall::iptables.pp
# Module name: haproxy_cd
2018-04-24 15:32:11 +02:00
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary manage firewall settings through cd_firewall or puppetlabs-firewall
###############################################################################
2025-03-02 16:28:57 +01:00
class haproxy_cd::firewall::iptables (
2018-04-24 15:32:11 +02:00
2025-03-02 16:28:57 +01:00
) inherits haproxy_cd::params {
2018-04-24 15:32:11 +02:00
if ($fqdn == $hy_host_fqdn) and ($hy_manage_fw == true) {
2018-12-10 14:36:54 +01:00
firewall { "${hy_fw_order_no}${hy_http_port} tcp port ${hy_http_port}":
2025-03-02 17:26:09 +01:00
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}":
2025-03-02 17:26:09 +01:00
proto => 'tcp',
dport => $hy_https_port,
2025-01-27 11:42:25 +01:00
jump => 'accept',
2018-04-24 15:32:11 +02:00
}
}
}