]> git.openstreetmap.org Git - chef.git/blob - roles/equinix-ams-public.rb
Move OSUOSL hosts to use interface inheritance for network configuration
[chef.git] / roles / equinix-ams-public.rb
1 name "equinix-ams-public"
2 description "Role applied to all public servers at Equinix Amsterdam"
3
4 default_attributes(
5   :networking => {
6     :interfaces => {
7       :henet => {
8         :interface => "bond0.3",
9         :role => :external,
10         :zone => "ams",
11         :metric => 150,
12         :source_route_table => 3,
13         :inet => {
14           :prefix => "27",
15           :gateway => "184.104.179.129"
16         },
17         :inet6 => {
18           :prefix => "64",
19           :gateway => "2001:470:1:fa1::1",
20           :routes => {
21             "2600:9000::/28" => { :table => 3, :type => "unreachable" }
22           }
23         }
24       },
25       :equinix => {
26         :interface => "bond0.103",
27         :role => :external,
28         :zone => "ams",
29         :metric => 100,
30         :source_route_table => 103,
31         :inet => {
32           :prefix => "27",
33           :gateway => "82.199.86.97"
34         },
35         :inet6 => {
36           :prefix => "64",
37           :gateway => "2001:4d78:500:5e3::1"
38         }
39       }
40     }
41   }
42 )
43
44 run_list(
45   "role[equinix-ams]"
46 )