enable firewall
This commit is contained in:
17
manifests/firewall/iptables.pp
Normal file
17
manifests/firewall/iptables.pp
Normal file
@@ -0,0 +1,17 @@
|
||||
## 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',
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user