]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/apache2/templates/ressource-limits.erb
Key apache memory for buildd master on role, not host name
[dsa-puppet.git] / modules / apache2 / templates / ressource-limits.erb
index 040313fc205b2a97e424bfca61aa8ff316a00c30..48875e54f63b77e5e3900d81a7364d70a736be25 100644 (file)
@@ -4,5 +4,19 @@
 ##
 
 RLimitCPU 180
-RLimitMEM 67108864
+<%=
+if scope.lookupvar('site::nodeinfo')['buildd_master'] then
+                       # buildd.debian.org
+                       "RLimitMEM "+(96 * 1024**2).to_s
+else
+       case fqdn
+               when "berlioz.debian.org" then
+                       ""
+               when "tchaikovsky.debian.org" then
+                       "RLimitMEM "+(96 * 1024**2).to_s
+               else
+                       "RLimitMEM "+(32 * 1024**2).to_s
+       end
+end
+%>
 RLimitNPROC 128