]> git.openstreetmap.org Git - chef.git/blob - roles/equinix-ams.rb
blogs: fix build in test
[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         :inet => {
19           :prefix => "27",
20           :gateway => "184.104.179.129"
21         },
22         :inet6 => {
23           :prefix => "64",
24           :gateway => "2001:470:1:fa1::1"
25         }
26       }
27     }
28   },
29   :prometheus => {
30     :metrics => {
31       :host_location => {
32         :help => "Host location",
33         :labels => { :site => "amsterdam" }
34       }
35     }
36   },
37   :web => {
38     :fileserver => "ironbelly",
39     :readonly_database_host => "snap-01.ams.openstreetmap.org",
40     :primary_cluster => true
41   }
42 )
43
44 override_attributes(
45   :networking => {
46     :nameservers => ["10.0.48.10", "8.8.8.8", "8.8.4.4"],
47     :search => ["ams.openstreetmap.org", "openstreetmap.org"]
48   },
49   :ntp => {
50     :servers => ["0.nl.pool.ntp.org", "1.nl.pool.ntp.org", "europe.pool.ntp.org"]
51   }
52 )
53
54 run_list(
55   "role[nl]"
56 )