Make apache worker config not depend on role memberships
[mirror/dsa-puppet.git] / modules / apache2 / manifests / init.pp
index 7875bd7..dfa4b59 100644 (file)
@@ -6,7 +6,13 @@
 #
 #   include apache2
 #
-class apache2 {
+# @param smaller_number_of_threads by default the worker config is geared towards
+#                                  serving static/cheap content.  If the host is very
+#                                  script heavy (say the bug tracking system), set this
+#                                  to reduce the number of worker threads.
+class apache2(
+  Boolean $smaller_number_of_threads = false
+) {
   include webserver
 
   package { 'apache2':