]> git.openstreetmap.org Git - chef.git/blob - roles/longma.rb
Add a test instance for the login/signup rework
[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 => {
8         :interface => "bond0",
9         :role => :internal,
10         :inet => {
11           :address => "10.0.64.13"
12         },
13         :bond => {
14           :mode => "802.3ad",
15           :lacprate => "fast",
16           :xmithashpolicy => "layer3+4",
17           :slaves => %w[enp68s0f0 enp68s0f1 enp68s0f2 enp68s0f3]
18         }
19       },
20       :external => {
21         :interface => "bond0.101",
22         :role => :external,
23         :inet => {
24           :address => "184.104.226.109"
25         },
26         :inet6 => {
27           :address => "2001:470:1:b3b::d"
28         }
29       }
30     }
31   },
32   :postgresql => {
33     :versions => ["16"],
34     :settings => {
35       :defaults => {
36         :max_connections => "550",
37         :work_mem => "240MB",
38         :effective_io_concurrency => "500"
39       }
40     }
41   },
42   :nominatim => {
43     :state => "standalone",
44     :dbcluster => "16/main",
45     :postgis => "3",
46     :enable_qa_tiles => true,
47     :flatnode_file => "/ssd/nominatim/nodes.store",
48     :logdir => "/ssd/nominatim/log",
49     :api_flavour => "python",
50     :api_workers => 24,
51     :api_pool_size => 10,
52     :fpm_pools => {
53       "nominatim.openstreetmap.org" => {
54         :max_children => 200
55       }
56     },
57     :config => {
58       :forward_dependencies => "yes"
59     }
60   }
61 )
62
63 run_list(
64   "role[equinix-dub]",
65   "role[nominatim]"
66 )