]> git.openstreetmap.org Git - chef.git/blob - roles/dulcy.rb
Drop roles for thorn-02 and thorn-03
[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_ipv4 => {
8         :interface => "bond0",
9         :role => :internal,
10         :family => :inet,
11         :address => "10.0.48.9",
12         :bond => {
13           :mode => "802.3ad",
14           :lacprate => "fast",
15           :xmithashpolicy => "layer3+4",
16           :slaves => %w[ens18f0 ens18f1]
17         }
18       },
19       :external_ipv4 => {
20         :interface => "bond0.2",
21         :role => :external,
22         :family => :inet,
23         :address => "130.117.76.9"
24       },
25       :external_ipv6 => {
26         :interface => "bond0.2",
27         :role => :external,
28         :family => :inet6,
29         :address => "2001:978:2:2C::172:9"
30       }
31     }
32   },
33   :postgresql => {
34     :versions => ["14"],
35     :settings => {
36       :defaults => {
37         :work_mem => "240MB",
38         :fsync => "on",
39         :effective_io_concurrency => "500"
40       }
41     }
42   },
43   :nominatim => {
44     :state => "standalone",
45     :dbcluster => "14/main",
46     :postgis => "3",
47     :flatnode_file => "/ssd/nominatim/nodes.store",
48     :logdir => "/ssd/nominatim/log"
49   }
50 )
51
52 run_list(
53   "role[equinix-ams]",
54   "role[nominatim]"
55 )