]> git.openstreetmap.org Git - chef.git/blobdiff - roles/ramoth.rb
Upgrade bytemark machines to chef 13
[chef.git] / roles / ramoth.rb
index 927c349a28f41e11b75bf13bb56e235c2882b035..fad21355a46d4bd07e3424f9fbd58bca98d245e6 100644 (file)
@@ -2,15 +2,18 @@ name "ramoth"
 description "Master role applied to ramoth"
 
 default_attributes(
 description "Master role applied to ramoth"
 
 default_attributes(
+  :apt => {
+    :sources => ["postgresql"]
+  },
   :db => {
   :db => {
-    :cluster => "9.1/main"
+    :cluster => "9.5/main"
   },
   :devices => {
     :store_openstreetmap => {
       :comment => "RAID array mounted on /store/postgresql/openstreetmap",
       :type => "block",
       :bus => "scsi",
   },
   :devices => {
     :store_openstreetmap => {
       :comment => "RAID array mounted on /store/postgresql/openstreetmap",
       :type => "block",
       :bus => "scsi",
-      :serial => "3600605b0039483a017092ecbe862082a",
+      :serial => "3600605b00599aa401c02b4f53bf5c805",
       :attrs => {
         "queue/scheduler" => "deadline",
         "queue/nr_requests" => "975"
       :attrs => {
         "queue/scheduler" => "deadline",
         "queue/nr_requests" => "975"
@@ -27,6 +30,19 @@ 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 => {
   :networking => {
     :interfaces => {
       :internal_ipv4 => {
@@ -51,15 +67,15 @@ default_attributes(
   :sysctl => {
     :postgres => {
       :comment => "Increase shared memory for postgres",
   :sysctl => {
     :postgres => {
       :comment => "Increase shared memory for postgres",
-      :parameters => { 
+      :parameters => {
         "kernel.shmmax" => 66 * 1024 * 1024 * 1024,
         "kernel.shmall" => 66 * 1024 * 1024 * 1024 / 4096
       }
     }
   }
         "kernel.shmmax" => 66 * 1024 * 1024 * 1024,
         "kernel.shmall" => 66 * 1024 * 1024 * 1024 / 4096
       }
     }
   }
-);
+)
 
 run_list(
   "role[ic]",
 
 run_list(
   "role[ic]",
-  "role[db-master]"
+  "role[db-slave]"
 )
 )