]> git.openstreetmap.org Git - chef.git/blob - roles/dulcy.rb
Blackhole unreachable Amazon IPv6 block on equinix machines
[chef.git] / roles / dulcy.rb
1 name "dulcy"
2 description "Master role applied to dulcy"
3
4 default_attributes(
5   :networking => {
6     :interfaces => {
7       :internal => {
8         :interface => "bond0",
9         :role => :internal,
10         :inet => {
11           :address => "10.0.48.9"
12         },
13         :bond => {
14           :mode => "802.3ad",
15           :lacprate => "fast",
16           :xmithashpolicy => "layer3+4",
17           :slaves => %w[ens18f0 ens18f1]
18         }
19       },
20       :external => {
21         :interface => "bond0.3",
22         :role => :external,
23         :inet => {
24           :address => "184.104.179.137"
25         },
26         :inet6 => {
27           :address => "2001:470:1:fa1::9"
28         }
29       }
30     }
31   },
32   :postgresql => {
33     :versions => ["15"],
34     :settings => {
35       :defaults => {
36         :work_mem => "240MB",
37         :effective_io_concurrency => "500"
38       }
39     }
40   },
41   :nominatim => {
42     :state => "standalone",
43     :dbcluster => "15/main",
44     :postgis => "3",
45     :flatnode_file => "/ssd/nominatim/nodes.store",
46     :logdir => "/ssd/nominatim/log",
47     :api_flavour => "python",
48     :api_workers => 14,
49     :api_pool_size => 10,
50     :config => {
51       :forward_dependencies => "yes"
52     }
53   }
54 )
55
56 run_list(
57   "role[equinix-ams]",
58   "role[nominatim]"
59 )