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