]> git.openstreetmap.org Git - chef.git/blob - roles/longma.rb
Drop roles for thorn-02 and thorn-03
[chef.git] / roles / longma.rb
1 name "longma"
2 description "Master role applied to longma"
3
4 default_attributes(
5   :networking => {
6     :interfaces => {
7       :internal_ipv4 => {
8         :interface => "bond0",
9         :role => :internal,
10         :family => :inet,
11         :address => "10.0.64.13",
12         :bond => {
13           :mode => "802.3ad",
14           :lacprate => "fast",
15           :xmithashpolicy => "layer3+4",
16           :slaves => %w[enp68s0f0 enp68s0f1 enp68s0f2 enp68s0f3]
17         }
18       },
19       :external_ipv4 => {
20         :interface => "bond0.101",
21         :role => :external,
22         :family => :inet,
23         :address => "184.104.226.109"
24       },
25       :external_ipv6 => {
26         :interface => "bond0.101",
27         :role => :external,
28         :family => :inet6,
29         :address => "2001:470:1:b3b::d"
30       }
31     }
32   },
33   :postgresql => {
34     :versions => ["14"],
35     :settings => {
36       :defaults => {
37         :max_connections => "550",
38         :work_mem => "240MB",
39         :fsync => "on",
40         :effective_io_concurrency => "500"
41       }
42     }
43   },
44   :nominatim => {
45     :state => "standalone",
46     :dbcluster => "14/main",
47     :postgis => "3",
48     :enable_qa_tiles => true,
49     :flatnode_file => "/ssd/nominatim/nodes.store",
50     :logdir => "/ssd/nominatim/log",
51     :fpm_pools => {
52       "nominatim.openstreetmap.org" => {
53         :max_children => 200
54       }
55     }
56   }
57 )
58
59 run_list(
60   "role[equinix-dub]",
61   "role[nominatim]"
62 )