]> git.openstreetmap.org Git - chef.git/blob - roles/yevaud.rb
Tweak warning threshold for hpasmcli2 temperature warnings
[chef.git] / roles / yevaud.rb
1 name "yevaud"
2 description "Master role applied to yevaud"
3
4 default_attributes(
5   :devices => {
6     :osdisktune1 => {
7       :comment => "Tune os disk",
8       :type => "block",
9       :bus => "scsi",
10       :serial => "20004d927fffff800",
11       :attrs => {
12         "queue/scheduler" => "deadline",
13         "queue/nr_requests" => "512"
14       }
15     },
16     :disktune2 => {
17       :comment => "Tune database array",
18       :type => "block",
19       :bus => "scsi",
20       :serial => "20004d927fffff802",
21       :attrs => {
22         "queue/scheduler" => "deadline",
23         "queue/nr_requests" => "512"
24       }
25     },
26     :disktune3 => {
27       :comment => "Tune os disk",
28       :type => "block",
29       :bus => "scsi",
30       :serial => "20004d927fffff803",
31       :attrs => {
32         "queue/scheduler" => "deadline",
33         "queue/nr_requests" => "512"
34       }
35     },
36     :ssdtune1 => {
37       :comment => "Tune ssd disk",
38       :type => "block",
39       :bus => "ata",
40       :serial => "INTEL_SSDSA2CW600G3_CVPR111401HP600FGN",
41       :attrs => {
42         "queue/scheduler" => "noop",
43         "queue/nr_requests" => "512",
44         "queue/read_ahead_kb" => "2048"
45       }
46     }
47   },
48   :munin => {
49     :plugins => {
50       :cpu => {
51         :system => { 
52           :warning => 500,
53           :critical => 600
54         }
55       },
56       :load => {
57         :load => { 
58           :warning => 150,
59           :critical => 200
60         }
61       },
62       :ipmi_fans => {
63         :contacts => "null",
64       },
65       :ipmi_temp => {
66         :contacts => "null",
67       },
68       :sensors_fan => {
69         :contacts => "null"
70       },
71       :sensors_temp => {
72         :contacts => "null"
73       },
74       :sensors_volt => {
75         :contacts => "null"
76       }
77     }
78   },
79   :networking => {
80     :interfaces => {
81       :internal_ipv4 => {
82         :interface => "eth0",
83         :role => :internal,
84         :family => :inet,
85         :address => "10.0.0.15"
86       },
87       :external_ipv4 => {
88         :interface => "eth1",
89         :role => :external,
90         :family => :inet,
91         :address => "128.40.45.208"
92       }
93     }
94   },
95   :postgresql => {
96     :versions => [ "9.1" ],
97     :settings => {
98       :defaults => {
99         :shared_buffers => "3GB",
100         :maintenance_work_mem => "7144MB",
101         :effective_cache_size => "8GB"
102       }
103     }
104   },
105   :sysctl => {
106     :postgres => {
107       :comment => "Increase shared memory for postgres",
108       :parameters => { 
109         "kernel.shmmax" => 4 * 1024 * 1024 * 1024,
110         "kernel.shmall" => 4 * 1024 * 1024 * 1024 / 4096
111       }
112     }
113   },
114   :tile => {
115     :node_file => "/store/database/nodes",
116     :styles => {
117       :default => {
118         :tile_directories => [
119           { :name => "/store/tiles/default-low", :min_zoom => 0, :max_zoom => 16 },
120           { :name => "/store/tiles/default-high", :min_zoom => 17, :max_zoom => 19 }
121         ]
122       }
123     }
124   }
125 )
126
127 run_list(
128   "role[ucl-wolfson]",
129   "role[tile]"
130 )