]> git.openstreetmap.org Git - chef.git/blob - roles/poldi.rb
Move crm.osmfoundation to join.osmfoundation
[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 => "146.179.159.164"
44       },
45       :external_ipv4 => {
46         :interface => "eth1",
47         :role => :external,
48         :family => :inet,
49         :address => "193.63.75.101"
50       },
51       :external_ipv6 => {
52         :interface => "eth1",
53         :role => :external,
54         :family => :inet6,
55         :address => "2001:630:12:500:2e0:81ff:fec5:333e"
56       }
57     }
58   },
59   :postgresql => {
60     :settings => {
61       :defaults => {
62         :shared_buffers => "10GB",
63         :work_mem => "160MB",
64         :maintenance_work_mem => "10GB",
65         :random_page_cost => "1.5",
66         :effective_cache_size => "48GB",
67         :fsync => "on"
68       }
69     }
70   },
71   :nominatim => {
72     :flatnode_file => "/ssd-old/nominatim/nodes.store",
73     :database => {
74       :cluster => "9.3/main",
75       :dbname => "nominatim",
76       :postgis => "2.1"
77     },
78     :fpm_pools => {
79       :www => {
80         :port => "8000",
81         :pm => "dynamic",
82         :max_children => "60"
83       },
84       :bulk => {
85         :port => "8001",
86         :pm => "static",
87         :max_children => "10"
88       }
89     }
90   }
91 )
92
93 run_list(
94   "role[ic]",
95   "role[tyan-s7010]",
96   "role[nominatim-slave]"
97 )