2026-09-05 11:38:16 +02:00
|
|
|
## confdroid_haproxy::firewall::iptables.pp
|
|
|
|
|
# Module name: confdroid_haproxy
|
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
|
|
|
|
|
###############################################################################
|
2026-09-05 11:38:16 +02:00
|
|
|
class confdroid_haproxy::firewall::iptables (
|
2018-04-24 15:32:11 +02:00
|
|
|
|
2026-09-05 11:38:16 +02:00
|
|
|
) inherits confdroid_haproxy::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
|
|
|
}
|
2026-09-05 12:56:23 +02:00
|
|
|
|
|
|
|
|
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',
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-04-24 15:32:11 +02:00
|
|
|
}
|
|
|
|
|
}
|