]> git.openstreetmap.org Git - chef.git/blob - roles/smaug.rb
Fix apache conf files name for apache 2.4
[chef.git] / roles / smaug.rb
1 name "smaug"
2 description "Master role applied to smaug"
3
4 default_attributes(
5   :accounts => {
6     :users => {
7       :gravitystorm => { :status => :user }
8     }
9   },
10   :apt => {
11     :sources => [ "brightbox-ruby-ng" ]
12   },
13   :db => {
14     :cluster => "9.1/main"
15   },
16   :munin => {
17     :plugins => {
18       :ipmi_fans => {
19         :Fan4 => { :graph => "no" },
20         :Fan7CPU1 => { :graph => "no" },
21         :Fan8CPU2 => { :graph => "no" }
22       },
23       :sensors_volt => {
24         :contacts => "null",
25         :volt10 => { 
26           :warning => "3.11:3.50",
27           :critical => "2.98:3.63"
28         }
29       }
30     }
31   },
32   :networking => {
33     :interfaces => {
34       :internal_ipv4 => {
35         :interface => "eth0",
36         :role => :internal,
37         :family => :inet,
38         :address => "146.179.159.168"
39       }
40     }
41   },
42   :postgresql => {
43     :settings => {
44       :defaults => {
45         :shared_buffers => "16GB",
46         :work_mem => "32MB",
47         :maintenance_work_mem => "512MB",
48         :effective_cache_size => "45GB"
49       }
50     }
51   },
52   :sysctl => {
53     :postgres => {
54       :comment => "Increase shared memory for postgres",
55       :parameters => { 
56         "kernel.shmmax" => 17 * 1024 * 1024 * 1024,
57         "kernel.shmall" => 17 * 1024 * 1024 * 1024 / 4096
58       }
59     },
60   },
61   :sysfs => {
62     :hdd_tune => {
63       :comment => "Tune the queue for improved performance",
64       :parameters => {
65         "block/sda/queue/nr_requests" => "512",
66         "block/sdb/queue/nr_requests" => "512",
67         "block/sda/queue/scheduler" => "noop",
68         "block/sdb/queue/scheduler" => "noop"
69       }
70     }
71   }
72 );
73
74 run_list(
75   "role[ic]",
76   "role[db-slave]",
77   "role[planetdump]"
78 )