]> git.openstreetmap.org Git - chef.git/blob - roles/poldi.rb
Reenable the nominatim role on pummelzacken
[chef.git] / roles / poldi.rb
1 name "poldi"
2 description "Master role applied to poldi"
3
4 default_attributes(
5   :devices => {
6     :areca_ld_tune => {
7       :comment => "RAID arrays on areca",
8       :type => "block",
9       :bus => "scsi",
10       :serial => "20004d927fffff*",
11       :attrs => {
12         "queue/scheduler" => "deadline",
13         "queue/read_ahead_kb" => "2048"
14       }
15     },
16     :ssd_samsung_tune => {
17       :comment => "Tune Samsung SSD",
18       :type => "block",
19       :bus => "ata",
20       :serial => "Samsung_SSD_840_PRO_Series_*",
21       :attrs => {
22         "queue/scheduler" => "noop",
23         "queue/nr_requests" => "256",
24         "queue/read_ahead_kb" => "2048"
25       }
26     }
27   },
28   :sysfs => {
29     :md_tune => {
30       :comment => "Tune the md sync performance so as not to kill system performance",
31       :parameters => {
32         "block/md0/md/sync_speed_min" => "100",
33         "block/md0/md/sync_speed_max" => "100000"
34       }
35     }
36   },
37   :networking => {
38     :interfaces => {
39       :internal_ipv4 => {
40         :interface => "eth0",
41         :role => :internal,
42         :family => :inet,
43         :address => "10.0.0.16"
44       },
45       :external_ipv4 => {
46         :interface => "eth1",
47         :role => :external,
48         :family => :inet,
49         :address => "128.40.168.106"
50       }
51     }
52   },
53   :postgresql => {
54     :settings => {
55       :defaults => {
56         :shared_buffers => "24GB",
57         :work_mem => "160MB",
58         :maintenance_work_mem => "10GB",
59         :random_page_cost => "1.5",
60         :effective_cache_size => "48GB"
61       }
62     }
63   },
64   :nominatim => {
65     :fpm_pools => {
66         :www => {
67             :pm => "dynamic",
68             :max_children => "70"
69         },
70         :bulk => {
71             :pm => "static",
72             :max_children => "10"
73         }
74     }
75   },
76   :munin => {
77     :plugins => {
78       :sensors_volt => {
79         :volt6 => {
80           :warning => "2.992:3.536"
81         },
82         :volt10 => {
83           :warning => "2.71:3.29"
84         }
85       }
86     }
87   }
88 )
89
90 run_list(
91   "role[ucl-internal]",
92   "role[nominatim]"
93 )