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

add parameter to manage iptables

parent 3fb0e229
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -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

  if ($manage_iptables) {
    base::iptables::rule { 'web':
      description => 'Allow web accesses from anywhere',
      protocol    => 'tcp',
      port        => [ 80, 443 ],
    }
  }
}