]> git.openstreetmap.org Git - chef.git/blob - roles/dulcy.rb
Merge remote-tracking branch 'github/pull/604'
[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 => ["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     :api_flavour => "python",
49     :api_workers => 14,
50     :api_pool_size => 10,
51     :config => {
52       :forward_dependencies => "yes"
53     }
54   }
55 )
56
57 run_list(
58   "role[equinix-ams]",
59   "role[nominatim]"
60 )