X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fapache2%2Fmanifests%2Finit.pp;h=8aacde987b9aee411ab36bb095904b85d941b24a;hb=4cdceb9046a1152a30f0d448db8fbffba1ab90c6;hp=f3a598b4aa3a4fc022b446c460d17e3c494dd3ce;hpb=44688b3127634f8a9369c6419f45a706a39ee628;p=mirror%2Fdsa-puppet.git diff --git a/modules/apache2/manifests/init.pp b/modules/apache2/manifests/init.pp index f3a598b4a..8aacde987 100644 --- a/modules/apache2/manifests/init.pp +++ b/modules/apache2/manifests/init.pp @@ -39,10 +39,6 @@ class apache2 { ensure => absent, } - apache2::config { 'ressource-limits': - ensure => absent, - } - if has_role('udd') { $memlimit = 512 * 1024 * 1024 } elsif has_role('dgit_git') { @@ -157,21 +153,23 @@ class apache2 { ensure => installed, } - if $::hostname in [beach,buxtehude,picconi,pkgmirror-csail] { - include apache2::dynamic - } else { - @ferm::rule { 'dsa-http': - prio => '23', - description => 'Allow web access', - rule => '&SERVICE(tcp, (http https))' + if (! has_role('apache_not_public')) { + if $::hostname in [beach,buxtehude,picconi,pkgmirror-csail] { + include apache2::dynamic + } else { + @ferm::rule { 'dsa-http': + prio => '23', + description => 'Allow web access', + rule => '&SERVICE(tcp, (http https))' + } } - } - @ferm::rule { 'dsa-http-v6': - domain => '(ip6)', - prio => '23', - description => 'Allow web access', - rule => '&SERVICE(tcp, (http https))' + @ferm::rule { 'dsa-http-v6': + domain => '(ip6)', + prio => '23', + description => 'Allow web access', + rule => '&SERVICE(tcp, (http https))' + } } exec { 'service apache2 reload':