X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fapache2%2Fmanifests%2Finit.pp;h=b37d990534ef4b00c226a8963c1a4b0f8bf6eef7;hb=cabe85bf135a795f842570fd1fa438b1c60a046d;hp=fba3b38905b67a79bf0197ba63b6c42d5b60463f;hpb=0682e93d315d687ec13b0b6ec80f28c231628303;p=mirror%2Fdsa-puppet.git diff --git a/modules/apache2/manifests/init.pp b/modules/apache2/manifests/init.pp index fba3b3890..b37d99053 100644 --- a/modules/apache2/manifests/init.pp +++ b/modules/apache2/manifests/init.pp @@ -37,22 +37,20 @@ class apache2 { ensure => absent, } + apache2::config { 'serve-cgi-bin': + ensure => absent, + } + apache2::config { 'ressource-limits': ensure => absent, } - if has_role('buildd_master') { - $memlimit = 192 * 1024 * 1024 - } elsif has_role('buildd_ports_master') { - $memlimit = 192 * 1024 * 1024 - } elsif has_role('nagiosmaster') { - $memlimit = 96 * 1024 * 1024 - } elsif has_role('packagesqamaster') { - $memlimit = 192 * 1024 * 1024 - } elsif has_role('nm') { - $memlimit = 96 * 1024 * 1024 + if has_role('udd') { + $memlimit = 512 * 1024 * 1024 + } elsif has_role('sso') { + $memlimit = 512 * 1024 * 1024 } else { - $memlimit = 32 * 1024 * 1024 + $memlimit = 192 * 1024 * 1024 } apache2::config { 'resource-limits': @@ -89,7 +87,7 @@ class apache2 { if $::lsbmajdistrelease > 7 { file { '/etc/apache2/mods-available/mpm_worker.conf': - source => 'puppet:///modules/apache2/mpm_worker', + content => template('apache2/mpm_worker.erb'), } }