-
Notifications
You must be signed in to change notification settings - Fork 66
/
equinix-dub.rb
67 lines (64 loc) · 1.5 KB
/
equinix-dub.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name "equinix-dub"
description "Role applied to all servers at Equinix Dublin"
default_attributes(
:sysctl => {
:enable_bbr_10g => {
:comment => "Enable BBR. Equinix Dub has 10G uplink unlikely to buffer overrun",
:parameters => {
"net.ipv4.tcp_congestion_control" => "bbr",
"net.ipv4.tcp_notsent_lowat" => "16384"
}
}
},
:networking => {
:roles => {
:internal => {
:inet => {
:prefix => "20",
:gateway => "10.0.64.2",
:routes => {
"10.0.0.0/8" => { :via => "10.0.64.2" }
}
}
},
:external => {
:zone => "dub",
:inet => {
:prefix => "27",
:gateway => "184.104.226.97"
},
:inet6 => {
:prefix => "64",
:gateway => "2001:470:1:b3b::1",
:routes => {
"2600:9000::/28" => { :type => "unreachable" }
}
}
}
}
},
:prometheus => {
:metrics => {
:host_location => {
:help => "Host location",
:labels => { :site => "dublin" }
}
}
},
:web => {
:fileserver => "fafnir",
:readonly_database_host => "snap-03.dub.openstreetmap.org"
}
)
override_attributes(
:networking => {
:nameservers => ["10.0.64.2", "74.82.42.42", "2001:470:20::2"],
:search => ["dub.openstreetmap.org", "openstreetmap.org"]
},
:ntp => {
:servers => ["0.ie.pool.ntp.org", "1.ie.pool.ntp.org", "europe.pool.ntp.org"]
}
)
run_list(
"role[ie]"
)