]> git.openstreetmap.org Git - chef.git/blob - roles/equinix-ams.rb
Use volume for nested podman container storage
[chef.git] / roles / equinix-ams.rb
1 name "equinix-ams"
2 description "Role applied to all servers at Equinix Amsterdam"
3
4 default_attributes(
5   :location => "Amsterdam, Netherlands",
6   :sysctl => {
7     :enable_bbr_10g => {
8       :comment => "Enable BBR. Equinix AMS has 3Gbps uplinks",
9       :parameters => {
10         "net.core.default_qdisc" => "fq",
11         "net.ipv4.tcp_congestion_control" => "bbr"
12       }
13     }
14   },
15   :networking => {
16     :interfaces => {
17       :internal => {
18         :interface => "bond0",
19         :role => :internal,
20         :metric => 200,
21         :inet => {
22           :prefix => "20",
23           :gateway => "10.0.48.14",
24           :routes => {
25             "10.0.0.0/8" => { :via => "10.0.48.14" }
26           }
27         },
28         :bond => {
29           :mode => "802.3ad",
30           :lacprate => "fast",
31           :xmithashpolicy => "layer3+4"
32         }
33       }
34     }
35   },
36   :prometheus => {
37     :metrics => {
38       :host_location => {
39         :help => "Host location",
40         :labels => { :site => "amsterdam" }
41       }
42     }
43   },
44   :web => {
45     :readonly_database_host => "snap-01.ams.openstreetmap.org",
46     :primary_cluster => true
47   }
48 )
49
50 override_attributes(
51   :networking => {
52     :nameservers => ["10.0.48.14", "8.8.8.8", "8.8.4.4"],
53     :search => ["ams.openstreetmap.org", "openstreetmap.org"]
54   }
55 )
56
57 run_list(
58   "role[nl]"
59 )