]> git.openstreetmap.org Git - chef.git/blob - roles/pummelzacken.rb
Merge remote-tracking branch 'github/pull/49'
[chef.git] / roles / pummelzacken.rb
1 name "pummelzacken"
2 description "Master role applied to pummelzacken"
3
4 default_attributes(
5   :networking => {
6     :interfaces => {
7       :internal_ipv4 => {
8         :interface => "em1",
9         :role => :internal,
10         :family => :inet,
11         :address => "10.0.0.20"
12       },
13       :external_ipv4 => {
14         :interface => "em2",
15         :role => :external,
16         :family => :inet,
17         :address => "128.40.45.204"
18       }
19     }
20   },
21   :postgresql => {
22     :settings => {
23       :defaults => {
24         :listen_addresses => "10.0.0.20",
25         :shared_buffers => "10GB",
26         :work_mem => "160MB",
27         :maintenance_work_mem => "10GB",
28         :random_page_cost => "1.5",
29         :effective_cache_size => "60GB"
30       }
31     }
32   },
33   :nominatim => {
34     :flatnode_file => "/ssd/nominatim/nodes.store",
35     :database => {
36       :cluster => "9.3/main",
37       :dbname => "nominatim",
38       :postgis => "2.1"
39     },
40     :fpm_pools => {
41       :www => {
42         :port => "8000",
43         :pm => "dynamic",
44         :max_children => "60"
45       },
46       :bulk => {
47         :port => "8001",
48         :pm => "static",
49         :max_children => "10"
50       }
51     },
52     :redirects => {
53       :reverse => "poldi.openstreetmap.org"
54     }
55   },
56   :hardware => {
57     :grub => {
58       # lock kernel to 3.16.0-46 due to some issue with igb driver
59       # see https://github.com/openstreetmap/operations/issues/45
60       # for more information.
61       :kernel => "3.16.0-46"
62     }
63   }
64 )
65
66 run_list(
67   "role[ucl-wolfson]",
68   "role[nominatim-master]"
69 )