]> git.openstreetmap.org Git - chef.git/blob - roles/equinix-ams.rb
Move OSUOSL 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         :metric => 200,
11         :inet => {
12           :prefix => "20",
13           :gateway => "10.0.48.14",
14           :routes => {
15             "10.0.0.0/8" => { :via => "10.0.48.14" }
16           }
17         },
18         :bond => {
19           :mode => "802.3ad",
20           :lacprate => "fast",
21           :xmithashpolicy => "layer3+4"
22         }
23       }
24     }
25   },
26   :prometheus => {
27     :metrics => {
28       :host_location => {
29         :help => "Host location",
30         :labels => { :site => "amsterdam" }
31       }
32     }
33   },
34   :web => {
35     :readonly_database_host => "snap-01.ams.openstreetmap.org",
36     :primary_cluster => true
37   }
38 )
39
40 override_attributes(
41   :networking => {
42     :nameservers => ["10.0.48.14", "8.8.8.8", "8.8.4.4"],
43     :search => ["ams.openstreetmap.org", "openstreetmap.org"]
44   },
45   :ntp => {
46     :servers => ["0.nl.pool.ntp.org", "1.nl.pool.ntp.org", "europe.pool.ntp.org"]
47   }
48 )
49
50 run_list(
51   "role[nl]"
52 )