]> git.openstreetmap.org Git - chef.git/blobdiff - roles/ramoth.rb
Increase smart warning threshold for SSDs on ramoth
[chef.git] / roles / ramoth.rb
index 6e1b71992b2e6e808a386185f8c0dc7053500e42..21c75a33982a9d099653107e6e288648859a8bc0 100644 (file)
@@ -30,6 +30,16 @@ default_attributes(
   :hardware => {
     :watchdog => "w83627hf_wdt"
   },
+  :munin => {
+    :plugins => {
+      :smart_sg0_33 => {
+        :smartctl_exit_status => { :warning => ":8" }
+      },
+      :smart_sg0_34 => {
+        :smartctl_exit_status => { :warning => ":8" }
+      }
+    }
+  },
   :networking => {
     :interfaces => {
       :internal_ipv4 => {
@@ -54,16 +64,15 @@ default_attributes(
   :sysctl => {
     :postgres => {
       :comment => "Increase shared memory for postgres",
-      :parameters => { 
+      :parameters => {
         "kernel.shmmax" => 66 * 1024 * 1024 * 1024,
         "kernel.shmall" => 66 * 1024 * 1024 * 1024 / 4096
       }
     }
   }
-);
+)
 
 run_list(
   "role[ic]",
-  "role[db-master]",
-  "role[db-backup]"
+  "role[db-slave]"
 )