]> git.openstreetmap.org Git - chef.git/blobdiff - roles/planet.rb
Add tests for planet cookbook
[chef.git] / roles / planet.rb
index 791c2e84f4e80d46788b0f45d8b7f315f5e818fc..9055e1efd287ee3bc3778d3e8f7e489e6b72d536 100644 (file)
@@ -2,15 +2,6 @@ name "planet"
 description "Role applied to all planet servers"
 
 default_attributes(
-  :accounts => {
-    :users => {
-      :bretth => { :status => :user },
-      :planet => {
-        :status => :administrator,
-        :members => [ :bretth ]
-      }
-    }
-  },
   :rsyncd => {
     :modules => {
       :planet => {
@@ -22,27 +13,35 @@ default_attributes(
         :uid => "nobody",
         :gid => "nogroup",
         :transfer_logging => false,
-        :exclude => [ ".*" ],
+        :exclude => [".*"],
         :max_connections => 10,
         :ignore_errors => true,
         :ignore_nonreadable => true,
         :timeout => 3600,
-        :refuse_options => [ "checksum" ]
+        :refuse_options => ["checksum"]
       }
     }
   },
+  :networking => {
+    :firewall => {
+      :http_connection_limit => 10
+    }
+  },
   :apache => {
-    :mpm => "event",
+    :mpm => "worker",
     :keepalive => true,
-    :event => {
+    :worker => {
       :server_limit => 20,
-      :max_clients => 1000,
-      :threads_per_child => 50
+      :max_request_workers => 1000,
+      :threads_per_child => 50,
+      :min_spare_threads => 75,
+      :max_spare_threads => 525
     }
   }
 )
 
 run_list(
+  "role[web-db]",
   "recipe[planet]",
   "recipe[planet::replication]",
   "recipe[nfs::server]",