X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fapache2%2Fmanifests%2Finit.pp;h=283ce50e9e77249e291268443b4ad0d7bd094a49;hb=f29271d22a9f346a558cd70d2e6deb97c7900016;hp=dc1995872ba5512f6f402c394fab4ae53e4c1c7d;hpb=7a37eb9731a37f1fa7e42baa45f01dab65faa040;p=mirror%2Fdsa-puppet.git diff --git a/modules/apache2/manifests/init.pp b/modules/apache2/manifests/init.pp index dc1995872..283ce50e9 100644 --- a/modules/apache2/manifests/init.pp +++ b/modules/apache2/manifests/init.pp @@ -11,9 +11,12 @@ # 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 {