3
0

fix firewall

This commit is contained in:
Arne Teuke
2025-02-26 16:15:21 +01:00
parent 50d8604680
commit 6750222c93
2 changed files with 10 additions and 13 deletions

View File

@@ -81,7 +81,7 @@ cd_haproxy
haproxy.cfg
fqdn
ACLs
contineous
continuous
Jenkinsfiles
Jenkinsfile
SEEDjob

View File

@@ -1,24 +1,21 @@
## puppet_cd::firewwall::iptables.pp
## puppet_cd::firewall::iptables.pp
# Module name: puppet_cd
# Author: Arne Teuke (arne_teuke@confdroid)
# @summary Class manages firewall settings for the puppet_cd module.
###############################################################################
class puppet_cd::firewall::iptables (
) inherits puppet_cd::params {
if $fqdn == $pt_puppetmaster {
) inherits puppet_cd::params {
if $fqdn == $pt_pm_fqdn {
firewall { '38140 open port 8140':
proto => 'tcp',
dport => '8140',
jump => 'accept',
proto => 'tcp',
dport => '8140',
jump => 'accept',
}
firewall { '38443 open port 8443':
proto => 'tcp',
dport => '8443',
jump => 'accept',
proto => 'tcp',
dport => '8443',
jump => 'accept',
}
}
}