Files
confdroid_jenkins/manifests/firewall/iptables.pp

18 lines
569 B
ObjectPascal
Raw Normal View History

2025-05-05 18:13:28 +02:00
## jenkins_cd::firewall::iptables.pp
# Module name: jenkins_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages Jenkins iptables
##############################################################################
class jenkins_cd::firewall::iptables (
) inherits jenkins_cd::params {
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',
}
}
}