]> git.openstreetmap.org Git - chef.git/blob - roles/equinix-dub.rb
Drop roles for thorn-02 and thorn-03
[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           :routes => {
35             "2001:978:2:2c::/64" => { :type => "unreachable" }
36           }
37         }
38       }
39     }
40   },
41   :web => {
42     :fileserver => "fafnir",
43     :readonly_database_host => "snap-03.dub.openstreetmap.org"
44   }
45 )
46
47 override_attributes(
48   :networking => {
49     :nameservers => ["10.0.64.2", "8.8.8.8", "8.8.4.4"],
50     :search => ["dub.openstreetmap.org", "openstreetmap.org"]
51   },
52   :ntp => {
53     :servers => ["0.ie.pool.ntp.org", "1.ie.pool.ntp.org", "europe.pool.ntp.org"]
54   }
55 )
56
57 run_list(
58   "role[ie]"
59 )