26 lines
864 B
Puppet
26 lines
864 B
Puppet
## confdroid_postgresql::firewall::iptables.pp
|
|
# Module name: confdroid_postgresql
|
|
# Author: 12ww1160 (12ww1160@confdroid.com)
|
|
# @summary Class manages the alloy iptables
|
|
###############################################################################
|
|
class confdroid_postgresql::firewall::iptables (
|
|
|
|
) inherits confdroid_postgresql::params {
|
|
if ($fqdn == $pl_server_fqdn) and ($pl_enable_fw == true) {
|
|
firewall { "${pl_fw_rule_order}${pl_fw_port} tcp port ${pl_fw_port}":
|
|
source => $pl_source_range,
|
|
proto => 'tcp',
|
|
dport => $pl_fw_port,
|
|
jump => 'accept',
|
|
}
|
|
if $pl_use_pg_bouncer == true {
|
|
firewall { "${pl_fw_rule_order}${pl_bouncer_port} tcp port ${pl_bouncer_port}":
|
|
source => $pl_source_range,
|
|
proto => 'tcp',
|
|
dport => $pl_bouncer_port,
|
|
jump => 'accept',
|
|
}
|
|
}
|
|
}
|
|
}
|