]> git.openstreetmap.org Git - chef.git/blob - roles/equinix-dub.rb
e24d71a1f1ece9599ff98c10a377e9c8a1cade91
[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   :sysctl => {
6     :enable_bbr_10g => {
7       :comment => "Enable BBR. Equinix Dub has 10G uplink unlikely to buffer overrun",
8       :parameters => {
9         "net.ipv4.tcp_congestion_control" => "bbr",
10         "net.ipv4.tcp_notsent_lowat" => "16384"
11       }
12     }
13   },
14   :networking => {
15     :roles => {
16       :internal => {
17         :inet => {
18           :prefix => "20",
19           :gateway => "10.0.64.2",
20           :routes => {
21             "10.0.0.0/8" => { :via => "10.0.64.2" }
22           }
23         }
24       },
25       :external => {
26         :zone => "dub",
27         :inet => {
28           :prefix => "27",
29           :gateway => "184.104.226.97"
30         },
31         :inet6 => {
32           :prefix => "64",
33           :gateway => "2001:470:1:b3b::1"
34         }
35       }
36     }
37   },
38   :prometheus => {
39     :metrics => {
40       :host_location => {
41         :help => "Host location",
42         :labels => { :site => "dublin" }
43       }
44     }
45   },
46   :web => {
47     :fileserver => "fafnir",
48     :readonly_database_host => "snap-03.dub.openstreetmap.org"
49   }
50 )
51
52 override_attributes(
53   :networking => {
54     :nameservers => ["10.0.64.2", "8.8.8.8", "8.8.4.4"],
55     :search => ["dub.openstreetmap.org", "openstreetmap.org"]
56   },
57   :ntp => {
58     :servers => ["0.ie.pool.ntp.org", "1.ie.pool.ntp.org", "europe.pool.ntp.org"]
59   }
60 )
61
62 run_list(
63   "role[ie]"
64 )