# 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
ensure => installed,
}
- if (! has_role('apache_not_public')) {
+ if $public {
if has_role('apache_ratelimited') {
include apache2::dynamic
} else {