fix firewall
This commit is contained in:
@@ -81,7 +81,7 @@ cd_haproxy
|
|||||||
haproxy.cfg
|
haproxy.cfg
|
||||||
fqdn
|
fqdn
|
||||||
ACLs
|
ACLs
|
||||||
contineous
|
continuous
|
||||||
Jenkinsfiles
|
Jenkinsfiles
|
||||||
Jenkinsfile
|
Jenkinsfile
|
||||||
SEEDjob
|
SEEDjob
|
||||||
|
|||||||
@@ -1,24 +1,21 @@
|
|||||||
## puppet_cd::firewwall::iptables.pp
|
## puppet_cd::firewall::iptables.pp
|
||||||
# Module name: puppet_cd
|
# Module name: puppet_cd
|
||||||
# Author: Arne Teuke (arne_teuke@confdroid)
|
# Author: Arne Teuke (arne_teuke@confdroid)
|
||||||
# @summary Class manages firewall settings for the puppet_cd module.
|
# @summary Class manages firewall settings for the puppet_cd module.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
class puppet_cd::firewall::iptables (
|
class puppet_cd::firewall::iptables (
|
||||||
|
|
||||||
) inherits puppet_cd::params {
|
) inherits puppet_cd::params {
|
||||||
|
if $fqdn == $pt_pm_fqdn {
|
||||||
if $fqdn == $pt_puppetmaster {
|
|
||||||
|
|
||||||
firewall { '38140 open port 8140':
|
firewall { '38140 open port 8140':
|
||||||
proto => 'tcp',
|
proto => 'tcp',
|
||||||
dport => '8140',
|
dport => '8140',
|
||||||
jump => 'accept',
|
jump => 'accept',
|
||||||
}
|
}
|
||||||
|
|
||||||
firewall { '38443 open port 8443':
|
firewall { '38443 open port 8443':
|
||||||
proto => 'tcp',
|
proto => 'tcp',
|
||||||
dport => '8443',
|
dport => '8443',
|
||||||
jump => 'accept',
|
jump => 'accept',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user