]> git.openstreetmap.org Git - chef.git/blob - roles/equinix-ams.rb
Move UCL hosts to use interface inheritance for network configuration
[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     }
24   },
25   :prometheus => {
26     :metrics => {
27       :host_location => {
28         :help => "Host location",
29         :labels => { :site => "amsterdam" }
30       }
31     }
32   },
33   :web => {
34     :readonly_database_host => "snap-01.ams.openstreetmap.org",
35     :primary_cluster => true
36   }
37 )
38
39 override_attributes(
40   :networking => {
41     :nameservers => ["10.0.48.14", "8.8.8.8", "8.8.4.4"],
42     :search => ["ams.openstreetmap.org", "openstreetmap.org"]
43   },
44   :ntp => {
45     :servers => ["0.nl.pool.ntp.org", "1.nl.pool.ntp.org", "europe.pool.ntp.org"]
46   }
47 )
48
49 run_list(
50   "role[nl]"
51 )