]> git.openstreetmap.org Git - chef.git/blob - roles/equinix-dub.rb
foundation: use default mediawiki version
[chef.git] / roles / equinix-dub.rb
1 name "equinix-dub"
2 description "Role applied to all servers at Equinix Dublin"
3
4 default_attributes(
5   :location => "Dublin, Ireland",
6   :sysctl => {
7     :enable_bbr_10g => {
8       :comment => "Enable BBR. Equinix DUB 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.64.2",
24           :routes => {
25             "10.0.0.0/8" => { :via => "10.0.64.2" }
26           },
27           :rules => [
28             { :to => "10.0.0.0/8", :table => "main", :priority => 50 },
29             { :to => "172.16.0.0/12", :table => "main", :priority => 50 },
30             { :to => "192.168.0.0/16", :table => "main", :priority => 50 }
31           ]
32         },
33         :bond => {
34           :mode => "802.3ad",
35           :lacprate => "fast",
36           :xmithashpolicy => "layer3+4"
37         }
38       }
39     }
40   },
41   :prometheus => {
42     :metrics => {
43       :host_location => {
44         :help => "Host location",
45         :labels => { :site => "dublin" }
46       }
47     }
48   },
49   :web => {
50     :readonly_database_host => "snap-03.dub.openstreetmap.org"
51   }
52 )
53
54 override_attributes(
55   :networking => {
56     :nameservers => ["10.0.64.2", "74.82.42.42", "2001:470:20::2"],
57     :search => ["dub.openstreetmap.org", "openstreetmap.org"]
58   }
59 )
60
61 run_list(
62   "role[ie]"
63 )