]> git.openstreetmap.org Git - chef.git/blob - roles/equinix-dub-public.rb
Move Dublin hosts to use interface inheritance for network configuration
[chef.git] / roles / equinix-dub-public.rb
1 name "equinix-dub-public"
2 description "Role applied to all public servers at Equinix Dublin"
3
4 default_attributes(
5   :networking => {
6     :interfaces => {
7       :henet => {
8         :interface => "bond0.101",
9         :role => :external,
10         :zone => "dub",
11         :metric => 150,
12         :source_route_table => 101,
13         :inet => {
14           :prefix => "27",
15           :gateway => "184.104.226.97",
16           :rules => [
17             { :to => "10.0.0.0/8", :table => "main", :priority => 50 },
18             { :to => "172.16.0.0/12", :table => "main", :priority => 50 },
19             { :to => "192.168.0.0/16", :table => "main", :priority => 50 }
20           ]
21         },
22         :inet6 => {
23           :prefix => 64,
24           :gateway => "2001:470:1:b3b::1",
25           :rules => [
26             { :to => "2600:9000::/28", :table => 150, :priority => 100 }
27           ]
28         }
29       },
30       :equinix => {
31         :interface => "bond0.203",
32         :role => :external,
33         :zone => "dub",
34         :metric => 100,
35         :source_route_table => 203,
36         :inet => {
37           :prefix => "27",
38           :gateway => "87.252.214.97"
39         },
40         :inet6 => {
41           :prefix => 64,
42           :gateway => "2001:4d78:fe03:1c::1"
43         }
44       }
45     }
46   }
47 )
48
49 run_list(
50   "role[equinix-dub]"
51 )