]> git.openstreetmap.org Git - chef.git/blob - roles/ramoth.rb
Add base imagery recipe
[chef.git] / roles / ramoth.rb
1 name "ramoth"
2 description "Master role applied to ramoth"
3
4 default_attributes(
5   :db => {
6     :cluster => "9.1/main"
7   },
8   :devices => {
9     :store_openstreetmap => {
10       :comment => "RAID array mounted on /store/postgresql/openstreetmap",
11       :type => "block",
12       :bus => "scsi",
13       :serial => "3600605b00599aa401c02b4f53bf5c805",
14       :attrs => {
15         "queue/scheduler" => "deadline",
16         "queue/nr_requests" => "975"
17       }
18     },
19     :store_system => {
20       :comment => "RAID array mounted on /store/postgresql/system",
21       :type => "block",
22       :bus => "scsi",
23       :serial => "3600605b0039483a017092ff8fa5a6332",
24       :attrs => {
25         "queue/scheduler" => "deadline",
26         "queue/nr_requests" => "975"
27       }
28     }
29   },
30   :hardware => {
31     :watchdog => "w83627hf_wdt"
32   },
33   :munin => {
34     :plugins => {
35       :smart_sg0_33 => {
36         :smartctl_exit_status => { :warning => ":8" }
37       },
38       :smart_sg0_34 => {
39         :smartctl_exit_status => { :warning => ":8" }
40       }
41     }
42   },
43   :networking => {
44     :interfaces => {
45       :internal_ipv4 => {
46         :interface => "eth0",
47         :role => :internal,
48         :family => :inet,
49         :address => "146.179.159.170",
50         :hwaddress => "00:25:90:4b:05:9a"
51       }
52     }
53   },
54   :postgresql => {
55     :settings => {
56       :defaults => {
57         :shared_buffers => "64GB",
58         :work_mem => "64MB",
59         :maintenance_work_mem => "1GB",
60         :effective_cache_size => "180GB"
61       }
62     }
63   },
64   :sysctl => {
65     :postgres => {
66       :comment => "Increase shared memory for postgres",
67       :parameters => {
68         "kernel.shmmax" => 66 * 1024 * 1024 * 1024,
69         "kernel.shmall" => 66 * 1024 * 1024 * 1024 / 4096
70       }
71     }
72   }
73 )
74
75 run_list(
76   "role[ic]",
77   "role[db-slave]"
78 )