]> git.openstreetmap.org Git - chef.git/blob - roles/equinix-ams.rb
1c14a5d9fec82ec92ccdcddc01fc37472b7266ee
[chef.git] / roles / equinix-ams.rb
1 name "equinix-ams"
2 description "Role applied to all servers at Equinix Amsterdam"
3
4 default_attributes(
5   :networking => {
6     :interfaces => {
7       :internal => {
8         :interface => "bond0",
9         :role => :internal,
10         :inet => {
11           :prefix => "20",
12           :gateway => "10.0.48.14",
13           :routes => {
14             "10.0.0.0/8" => { :via => "10.0.48.14" }
15           }
16         },
17         :bond => {
18           :mode => "802.3ad",
19           :lacprate => "fast",
20           :xmithashpolicy => "layer3+4"
21         }
22       },
23       :henet => {
24         :interface => "bond0.3",
25         :role => :external,
26         :zone => "ams",
27         :metric => 150,
28         :source_route_table => 3,
29         :inet => {
30           :prefix => "27",
31           :gateway => "184.104.179.129"
32         },
33         :inet6 => {
34           :prefix => "64",
35           :gateway => "2001:470:1:fa1::1"
36         }
37       },
38       :equinix => {
39         :interface => "bond0.103",
40         :role => :external,
41         :zone => "ams",
42         :metric => 100,
43         :source_route_table => 103,
44         :inet => {
45           :prefix => "27",
46           :gateway => "82.199.86.97"
47         },
48         :inet6 => {
49           :prefix => "64",
50           :gateway => "2001:4d78:500:5e3::1"
51         }
52       }
53     }
54   },
55   :prometheus => {
56     :metrics => {
57       :host_location => {
58         :help => "Host location",
59         :labels => { :site => "amsterdam" }
60       }
61     }
62   },
63   :web => {
64     :readonly_database_host => "snap-01.ams.openstreetmap.org",
65     :primary_cluster => true
66   }
67 )
68
69 override_attributes(
70   :networking => {
71     :nameservers => ["10.0.48.14", "8.8.8.8", "8.8.4.4"],
72     :search => ["ams.openstreetmap.org", "openstreetmap.org"]
73   },
74   :ntp => {
75     :servers => ["0.nl.pool.ntp.org", "1.nl.pool.ntp.org", "europe.pool.ntp.org"]
76   }
77 )
78
79 run_list(
80   "role[nl]"
81 )