#
# 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':
# MaxConnectionsPerChild 0
<IfModule mpm_worker_module>
-<% if scope.function_has_role(['bugs_base']) or
- scope.function_has_role(['popcon'])
- -%>
+<% if @smaller_number_of_threads -%>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75