]> git.openstreetmap.org Git - chef.git/blob - roles/ramoth.rb
Add ghes.disable=1 to boot options on ramoth
[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     :grub => {
32       :cmdline => %w(ghes.disable=1)
33     },
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 )