mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-06 15:14:20 +09:00
OS - Ubuntu 12.04 PHP - 5.4 with cli intl mcrypt curl gd imagick mbstring MySQL IP - 10.20.30.12 target folder - /var/www/boxbilling servername - boxbilling.test XDEBUG
22 lines
626 B
Puppet
22 lines
626 B
Puppet
# PRIVATE CLASS: do not use directly
|
|
class postgresql::server::firewall {
|
|
$ensure = $postgresql::server::ensure
|
|
$manage_firewall = $postgresql::server::manage_firewall
|
|
$firewall_supported = $postgresql::server::firewall_supported
|
|
|
|
if ($manage_firewall and $firewall_supported) {
|
|
if ($ensure == 'present' or $ensure == true) {
|
|
# TODO: get rid of hard-coded port
|
|
firewall { '5432 accept - postgres':
|
|
port => '5432',
|
|
proto => 'tcp',
|
|
action => 'accept',
|
|
}
|
|
} else {
|
|
firewall { '5432 accept - postgres':
|
|
ensure => absent,
|
|
}
|
|
}
|
|
}
|
|
}
|