Commit ebba1983 authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

add parameter to manage iptables

parent 3fb0e229
......@@ -2,7 +2,8 @@
# module.
class su_apache (
$include_webauth = false,
Boolean $include_webauth = false,
Boolean $manage_iptables = true,
)
{
if ($include_webauth) {
......@@ -72,9 +73,11 @@ class su_apache (
include su_apache::filter_syslog
base::iptables::rule { 'web':
description => 'Allow web accesses from anywhere',
protocol => 'tcp',
port => [ 80, 443 ],
if ($manage_iptables) {
base::iptables::rule { 'web':
description => 'Allow web accesses from anywhere',
protocol => 'tcp',
port => [ 80, 443 ],
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment