]> git.openstreetmap.org Git - chef.git/blob - roles/equinix-ams.rb
Push external network config in Amsterdam down to the hosts
[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     :roles => {
7       :internal => {
8         :inet => {
9           :prefix => "20",
10           :gateway => "10.0.48.10",
11           :routes => {
12             "10.0.0.0/8" => { :via => "10.0.48.10" }
13           }
14         }
15       },
16       :external => {
17         :zone => "ams"
18       }
19     }
20   },
21   :web => {
22     :fileserver => "ironbelly",
23     :readonly_database_host => "snap-01.ams.openstreetmap.org",
24     :primary_cluster => true
25   }
26 )
27
28 override_attributes(
29   :networking => {
30     :nameservers => ["10.0.48.10", "8.8.8.8", "8.8.4.4"],
31     :search => ["ams.openstreetmap.org", "openstreetmap.org"]
32   },
33   :ntp => {
34     :servers => ["0.nl.pool.ntp.org", "1.nl.pool.ntp.org", "europe.pool.ntp.org"]
35   }
36 )
37
38 run_list(
39   "role[nl]"
40 )