Files
confdroid_jenkins/manifests/firewall/iptables.pp

18 lines
593 B
ObjectPascal
Raw Normal View History

2026-04-16 14:30:16 +02:00
## confdroid_jenkins::firewall::iptables.pp
# Module name: confdroid_jenkins
# Author: 12ww1160 (12ww1160@confdroid.com)
2025-05-05 18:13:28 +02:00
# @summary Class manages Jenkins iptables
##############################################################################
2026-04-16 14:30:16 +02:00
class confdroid_jenkins::firewall::iptables (
2025-05-05 18:13:28 +02:00
2026-04-16 14:30:16 +02:00
) inherits confdroid_jenkins::params {
2025-05-05 18:13:28 +02:00
if ($fqdn == $js_host_fqdn) and ($js_enable_fw == true) {
firewall { "${js_fw_rule}${js_jenkins_port} tcp port ${js_jenkins_port}":
proto => 'tcp',
source => $js_source_net,
dport => $js_jenkins_port,
jump => 'accept',
}
}
}