]> git.openstreetmap.org Git - chef.git/blob - roles/pummelzacken.rb
Switch imagery role grisu -> kessie
[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         :work_mem => "160MB",
26         :maintenance_work_mem => "10GB",
27         :random_page_cost => "1.5",
28         :effective_cache_size => "60GB"
29       }
30     }
31   },
32   :nominatim => {
33     :flatnode_file => "/ssd/nominatim/nodes.store",
34     :database => {
35       :cluster => "9.3/main",
36       :dbname => "nominatim",
37       :postgis => "2.1"
38     },
39     :fpm_pools => {
40       :www => {
41         :port => "8000",
42         :pm => "dynamic",
43         :max_children => "60"
44       },
45       :bulk => {
46         :port => "8001",
47         :pm => "static",
48         :max_children => "10"
49       }
50     },
51     :redirects => {
52       :reverse => "poldi.openstreetmap.org"
53     }
54   },
55   :hardware => {
56     :grub => {
57       # lock kernel to 3.16.0-46 due to some issue with igb driver
58       # see https://github.com/openstreetmap/operations/issues/45
59       # for more information.
60       :kernel => "3.16.0-46"
61     }
62   }
63 )
64
65 run_list(
66   "role[ucl-wolfson]",
67   "role[nominatim-master]"
68 )