]> git.openstreetmap.org Git - chef.git/blobdiff - roles/base.rb
Make karm the database master
[chef.git] / roles / base.rb
index b38d5ce167c02e029f98f644c6f6e3ff5ecf3643..094190e1a8561d0c099ad0632322eb2199ece311 100644 (file)
@@ -11,14 +11,21 @@ default_attributes(
     }
   },
   :apt => {
-    :sources => [ "openstreetmap" ]
+    :sources => ["openstreetmap"]
+  },
+  :munin => {
+    :plugins => {
+      :ntp_offset => {
+        :offset => { :warning => "100", :critical => "250" }
+      }
+    }
   },
   :networking => {
     :roles => {
       :internal => { :metric => 200, :zone => "loc" },
       :external => { :metric => 100 }
     },
-    :search => [ "openstreetmap.org" ]
+    :search => ["openstreetmap.org"]
   },
   :sysctl => {
     :panic => {
@@ -27,7 +34,10 @@ default_attributes(
     },
     :blackhole => {
       :comment => "Do TCP level MTU probing if we seem to have an ICMP blackhole",
-      :parameters => { "net.ipv4.tcp_mtu_probing" => "1" }
+      :parameters => {
+        "net.ipv4.tcp_mtu_probing" => "1",
+        "net.ipv4.tcp_base_mss" => "1024"
+      }
     },
     :network_buffers => {
       :comment => "Tune network buffers",
@@ -53,6 +63,12 @@ default_attributes(
       :parameters => {
         "net.ipv4.tcp_syncookies" => "1"
       }
+    },
+    :default_qdisc => {
+      :comment => "Use pfifo_fast as the default queuing discipline",
+      :parameters => {
+        "net.core.default_qdisc" => "pfifo_fast"
+      }
     }
   },
   :sysfs => {