]> git.openstreetmap.org Git - chef.git/blob - roles/orm.rb
ab268013084b0dd37aa0c475cbde58b3b5c42adc
[chef.git] / roles / orm.rb
1 name "orm"
2 description "Master role applied to orm"
3
4 default_attributes(
5   :devices => {
6     :ssdvol1tune => {
7       :comment => "Tune scheduler for SSD",
8       :type => "block",
9       :bus => "scsi",
10       :sas_address => "0x4433221107000000",
11       :attrs => {
12         "queue/scheduler" => "noop",
13         "queue/nr_requests" => "256"
14       }
15     },
16     :ssdvol2tune => {
17       :comment => "Tune scheduler for SSD",
18       :type => "block",
19       :bus => "scsi",
20       :sas_address => "0x4433221104000000",
21       :attrs => {
22         "queue/scheduler" => "noop",
23         "queue/nr_requests" => "256"
24       }
25     },
26     :arecavol1tune => {
27       :comment => "Tune scheduler for Areca",
28       :type => "block",
29       :bus => "scsi",
30       :model => "ARC-1680-VOL#000",
31       :attrs => {
32         "queue/scheduler" => "deadline",
33         "queue/nr_requests" => "512"
34       }
35     },
36     :arecavol2tune => {
37       :comment => "Tune scheduler for Areca",
38       :type => "block",
39       :bus => "scsi",
40       :model => "ARC-1680-VOL#001",
41       :attrs => {
42         "queue/scheduler" => "deadline",
43         "queue/nr_requests" => "512"
44       }
45     },
46     :arecavol3tune => {
47       :comment => "Tune scheduler for Areca",
48       :type => "block",
49       :bus => "scsi",
50       :model => "ARC-1680-VOL#002",
51       :attrs => {
52         "queue/scheduler" => "deadline",
53         "queue/nr_requests" => "512"
54       }
55     }
56   },
57   :munin => {
58     :plugins => {
59       :ipmi_fans => {
60         :Sys6 => { :graph => "no" },
61         :Sys8 => { :graph => "no" }
62       },
63       :sensors_fan => {
64         :fan3 => { :graph => "no" },
65         :fan4 => { :graph => "no" },
66         :fan5 => { :graph => "no" },
67         :fan6 => { :graph => "no" },
68         :fan7 => { :graph => "no" },
69         :fan8 => { :graph => "no" },
70         :fan9 => { :graph => "no" },
71         :fan10 => { :graph => "no" },
72         :fan11 => { :graph => "no" },
73         :fan12 => { :graph => "no" }
74       },
75       :sensors_volt => {
76         :contacts => "null",
77       }
78     }
79   },
80   :networking => {
81     :interfaces => {
82       :external_ipv4 => {
83         :interface => "eth0",
84         :role => :external,
85         :family => :inet,
86         :address => "193.63.75.98"
87       },
88       :external_ipv6 => {
89         :interface => "eth0",
90         :role => :external,
91         :family => :inet6,
92         :address => "2001:630:12:500:2e0:81ff:fec5:2a8c"
93       }
94     }
95   },
96   :postgresql => {
97     :versions => [ "9.1" ],
98     :settings => {
99       :defaults => {
100         :shared_buffers => "8GB",
101         :maintenance_work_mem => "7144MB",
102         :effective_cache_size => "16GB"
103       }
104     }
105   },
106   :sysctl => {
107     :postgres => {
108       :comment => "Increase shared memory for postgres",
109       :parameters => { 
110         "kernel.shmmax" => 9 * 1024 * 1024 * 1024,
111         "kernel.shmall" => 9 * 1024 * 1024 * 1024 / 4096
112       }
113     }
114   },
115   :tile => {
116     :tile_directory => "/store/tiles",
117     :node_file => "/store/database/nodes"
118   }
119 )
120
121 override_attributes(
122   :networking => {
123     :nameservers => [ "8.8.8.8", "8.8.4.4" ]
124   }
125 )
126
127 run_list(
128   "role[ic]",
129   "role[tile]"
130 )