]> git.openstreetmap.org Git - chef.git/blob - roles/gorynych.rb
Update piwik to 4.6.1
[chef.git] / roles / gorynych.rb
1 name "gorynych"
2 description "Master role applied to gorynych"
3
4 default_attributes(
5   :hardware => {
6     :ipmi => {
7       :excluded_sensors => [3, 4]
8     }
9   },
10   :munin => {
11     :plugins => {
12       :smart_sdc => {
13         :smartctl_exit_status => { :warning => ":8" }
14       },
15       :smart_sdd => {
16         :smartctl_exit_status => { :warning => ":8" }
17       }
18     }
19   },
20   :networking => {
21     :interfaces => {
22       :external_ipv4 => {
23         :interface => "eth1",
24         :role => :external,
25         :family => :inet,
26         :address => "5.45.248.21",
27         :prefix => "30",
28         :gateway => "5.45.248.22"
29       },
30       :external_ipv6 => {
31         :interface => "eth1",
32         :role => :external,
33         :family => :inet6,
34         :address => "2a02:6b8:b010:5065::a001",
35         :prefix => "64",
36         :gateway => "2a02:6b8:b010:5065::1"
37       }
38     }
39   },
40   :sysfs => {
41     :md_tune => {
42       :comment => "Tune the md sync performance so as not to kill system performance",
43       :parameters => {
44         "block/md0/md/sync_speed_min" => "1",
45         "block/md0/md/sync_speed_max" => "100000"
46       }
47     }
48   }
49 )
50
51 run_list(
52   "role[yandex]"
53 )