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 haproxy.cfg
fqdn fqdn
ACLs ACLs
contineous continuous
Jenkinsfiles Jenkinsfiles
Jenkinsfile Jenkinsfile
SEEDjob SEEDjob

View File

@@ -1,4 +1,4 @@
## 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.
@@ -6,15 +6,12 @@
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',