]> git.openstreetmap.org Git - chef.git/blob - roles/poldi.rb
Make the owl test site track the owl-activity-tab branch
[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" => "1",
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.45.203"
50       }
51     }
52   },
53   :postgresql => {
54     :versions => [ "9.3" ],
55     :settings => {
56       :defaults => {
57         :shared_buffers => "10GB",
58         :work_mem => "160MB",
59         :maintenance_work_mem => "10GB",
60         :random_page_cost => "1.5",
61         :effective_cache_size => "48GB",
62         :fsync => "on"
63       }
64     }
65   },
66   :nominatim => {
67     :enabled => false,
68     :flatnode_file => "/ssd-old/nominatim/nodes.store",
69     :database => {
70         :cluster => "9.3/main",
71         :dbname => "nominatim",
72         :postgis => "2.1"
73     },
74     :fpm_pools => {
75         :www => {
76             :pm => "dynamic",
77             :max_children => "60"
78         },
79         :bulk => {
80             :pm => "static",
81             :max_children => "10"
82         }
83     }
84   }
85 )
86
87 run_list(
88   "role[ucl-wolfson]",
89   "role[tyan-s7010]",
90   "role[nominatim]"
91 )