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