]> git.openstreetmap.org Git - chef.git/blob - roles/stormfly-04.rb
switch stormfly to import mode and use PG14
[chef.git] / roles / stormfly-04.rb
1 name "stormfly-04"
2 description "Master role applied to stormfly-04"
3
4 default_attributes(
5   :hardware => {
6     :shm_size => "38g"
7   },
8   :networking => {
9     :interfaces => {
10       :external_ipv4 => {
11         :interface => "bond0",
12         :role => :external,
13         :family => :inet,
14         :address => "140.211.167.100",
15         :bond => {
16           :slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
17         }
18       },
19       :external_ipv6 => {
20         :interface => "bond0",
21         :role => :external,
22         :family => :inet6,
23         :address => "2605:bc80:3010:700::8cd3:a764"
24       }
25     }
26   },
27   :postgresql => {
28     :versions => ["14"],
29     :settings => {
30       :defaults => {
31         :work_mem => "300MB",
32         :maintenance_work_mem => "10GB",
33         :random_page_cost => "1.5",
34         :effective_cache_size => "60GB",
35         :fsync => "off",
36         :effective_io_concurrency => "100"
37       }
38     }
39   },
40   :nominatim => {
41     :state => "standalone",
42     :enable_backup => false,
43     :enable_git_updates => true,
44     :enable_qa_tiles => true,
45     :dbadmins => %w[lonvia tomh],
46     :dbcluster => "14/main",
47     :postgis => "3",
48     :flatnode_file => "/ssd/nominatim/nodes.store",
49     :logdir => "/ssd/nominatim/log",
50     :fpm_pools => {
51       "nominatim.openstreetmap.org" => {
52         :max_children => 100
53       }
54     },
55     :tablespaces => {
56       "dosm" => "/ssd/tablespaces/dosm",
57       "iosm" => "/ssd/tablespaces/iosm",
58       "dplace" => "/ssd/tablespaces/dplace",
59       "iplace" => "/ssd/tablespaces/iplace",
60       "daddress" => "/ssd/tablespaces/daddress",
61       "iaddress" => "/ssd/tablespaces/iaddress",
62       "dsearch" => "/ssd/tablespaces/dsearch",
63       "isearch" => "/ssd/tablespaces/isearch",
64       "daux" => "/ssd/tablespaces/daux",
65       "iaux" => "/ssd/tablespaces/iaux"
66     }
67   }
68 )
69
70 run_list(
71   "role[osuosl]",
72   "role[hp-g9]",
73   "role[geodns]",
74   "role[nominatim]"
75 )