]> git.openstreetmap.org Git - chef.git/blob - roles/dulcy.rb
Merge interface families
[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.2",
22         :role => :external,
23         :inet => {
24           :address => "130.117.76.9"
25         },
26         :inet6 => {
27           :address => "2001:978:2:2c::172:9"
28         }
29       }
30     }
31   },
32   :postgresql => {
33     :versions => ["14"],
34     :settings => {
35       :defaults => {
36         :work_mem => "240MB",
37         :fsync => "on",
38         :effective_io_concurrency => "500"
39       }
40     }
41   },
42   :nominatim => {
43     :state => "standalone",
44     :dbcluster => "14/main",
45     :postgis => "3",
46     :flatnode_file => "/ssd/nominatim/nodes.store",
47     :logdir => "/ssd/nominatim/log",
48     :config => {
49       :forward_dependencies => "yes"
50     }
51   }
52 )
53
54 run_list(
55   "role[equinix-ams]",
56   "role[nominatim]"
57 )