]> git.openstreetmap.org Git - chef.git/blob - roles/equinix-ams.rb
Drop roles for thorn-02 and thorn-03
[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 => "130.117.76.1"
21         },
22         :inet6 => {
23           :prefix => "64",
24           :gateway => "2001:978:2:2C::172:1",
25           :routes => {
26             "2001:470:1:b3b::/64" => { :type => "unreachable" },
27             "2001:978:2:2c::/64" => { :type => "unreachable" },
28             "2001:4860::/32" => { :type => "unreachable" },
29             "2a00:1450:4000::/37" => { :type => "unreachable" }
30           }
31         }
32       }
33     }
34   },
35   :web => {
36     :fileserver => "ironbelly",
37     :readonly_database_host => "snap-01.ams.openstreetmap.org",
38     :primary_cluster => true
39   }
40 )
41
42 override_attributes(
43   :networking => {
44     :nameservers => ["10.0.48.10", "8.8.8.8", "8.8.4.4"],
45     :search => ["ams.openstreetmap.org", "openstreetmap.org"]
46   },
47   :ntp => {
48     :servers => ["0.nl.pool.ntp.org", "1.nl.pool.ntp.org", "europe.pool.ntp.org"]
49   }
50 )
51
52 run_list(
53   "role[nl]"
54 )