module-puppetdb/manifests/server/firewall.pp

26 lines
671 B
ObjectPascal
Raw Normal View History

# PRIVATE CLASS - do not use directly
class puppetdb::server::firewall (
$http_port = $puppetdb::params::listen_port,
$open_http_port = $puppetdb::params::open_listen_port,
$ssl_port = $puppetdb::params::ssl_listen_port,
$open_ssl_port = $puppetdb::params::open_ssl_listen_port,
) inherits puppetdb::params {
include firewall
if ($open_http_port) {
firewall { "${http_port} accept - puppetdb":
port => $http_port,
proto => 'tcp',
action => 'accept',
}
}
2012-09-20 23:46:26 +02:00
if ($open_ssl_port) {
firewall { "${ssl_port} accept - puppetdb":
port => $ssl_port,
proto => 'tcp',
action => 'accept',
2012-09-20 23:46:26 +02:00
}
}
}