]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/apache2/templates/resource-limits.erb
s/ressource/resource/
[dsa-puppet.git] / modules / apache2 / templates / resource-limits.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 RLimitCPU 180
7 <%=
8 if scope.lookupvar('site::nodeinfo')['buildd_master'] then
9                         # buildd.debian.org
10                         "RLimitMEM "+(96 * 1024**2).to_s
11 else
12         case fqdn
13                 when "berlioz.debian.org" then
14                         ""
15                 when "tchaikovsky.debian.org" then
16                         "RLimitMEM "+(96 * 1024**2).to_s
17                 else
18                         "RLimitMEM "+(32 * 1024**2).to_s
19         end
20 end
21 %>
22 RLimitNPROC 128