X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/8dad5b405a8015c526e7fd6b64544f25d938c728..d6eb1066fbc7092e091213a79017d7a9f934b3cd:/roles/ramoth.rb diff --git a/roles/ramoth.rb b/roles/ramoth.rb index 0b67c085f..900714597 100644 --- a/roles/ramoth.rb +++ b/roles/ramoth.rb @@ -2,6 +2,9 @@ name "ramoth" description "Master role applied to ramoth" default_attributes( + :apt => { + :sources => ["postgresql"] + }, :db => { :cluster => "9.1/main" }, @@ -10,7 +13,7 @@ default_attributes( :comment => "RAID array mounted on /store/postgresql/openstreetmap", :type => "block", :bus => "scsi", - :serial => "3600605b0039483a017092ecbe862082a", + :serial => "3600605b00599aa401c02b4f53bf5c805", :attrs => { "queue/scheduler" => "deadline", "queue/nr_requests" => "975" @@ -30,6 +33,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,13 +67,13 @@ 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]",