18 lines
569 B
Puppet
18 lines
569 B
Puppet
## 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',
|
|
}
|
|
}
|
|
}
|