]> git.openstreetmap.org Git - chef.git/blobdiff - roles/planet.rb
Add a per-IP connection limit on planet.osm.org
[chef.git] / roles / planet.rb
index d68bdabc3ac589e6c041bc9506308133bd6b2dfe..8c2870767b62c3be9c45961b762355afcfd5d5b2 100644 (file)
@@ -31,6 +31,11 @@ default_attributes(
       }
     }
   },
+  :networking => {
+    :firewall => {
+      :http_connection_limit => 10
+    }
+  },
   :apache => {
     :mpm => "event",
     :keepalive => true,
@@ -43,6 +48,7 @@ default_attributes(
 )
 
 run_list(
+  "role[web-db]",
   "recipe[planet]",
   "recipe[planet::replication]",
   "recipe[nfs::server]",