2013-08-27 22:43:47 +02:00
|
|
|
# PRIVATE CLASS: do not use directly
|
|
|
|
class postgresql::server::firewall {
|
|
|
|
$manage_firewall = $postgresql::server::manage_firewall
|
|
|
|
$firewall_supported = $postgresql::server::firewall_supported
|
2014-04-17 21:09:07 +02:00
|
|
|
$port = $postgresql::server::port
|
2013-08-27 22:43:47 +02:00
|
|
|
|
|
|
|
if ($manage_firewall and $firewall_supported) {
|
2014-07-02 16:45:07 +02:00
|
|
|
firewall { "${port} accept - postgres":
|
|
|
|
port => $port,
|
|
|
|
proto => 'tcp',
|
|
|
|
action => 'accept',
|
2013-08-27 22:43:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|