cdbuilder_local_mirror role cleanup
[mirror/dsa-puppet.git] / modules / apache2 / manifests / init.pp
index dc19958..283ce50 100644 (file)
 #                                  script heavy (say the bug tracking system), set this
 #                                  to reduce the number of worker threads.
 # @param rlimitnproc A resource limit for number of processes.  The default is usually fine.
+# @param public Whether this host's apache should be accessible from the public internet.
+#               Sets appropriate firewall rules and optionally rate limits.
 class apache2(
   Boolean $smaller_number_of_threads = false,
   Integer $rlimitnproc = 256,
+  Boolean $public = true,
 ) {
   include webserver
 
@@ -140,7 +143,7 @@ class apache2(
     ensure => installed,
   }
 
-  if (! has_role('apache_not_public')) {
+  if $public {
     if has_role('apache_ratelimited') {
       include apache2::dynamic
     } else {