]> git.openstreetmap.org Git - chef.git/blob - roles/equinix.rb
Increase replication slots
[chef.git] / roles / equinix.rb
1 name "equinix"
2 description "Role applied to all servers at Equinix"
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:978:2:2c::/64" => { :type => "unreachable" },
27             "2001:4860::/32" => { :type => "unreachable" },
28             "2a00:1450:4000::/37" => { :type => "unreachable" },
29             "2a04:fa80::/29" => { :type => "unreachable" }
30           }
31         }
32       }
33     }
34   },
35   :web => {
36     :backends => %w[rails1 rails2 rails3],
37     :fileserver => "ironbelly",
38     :readonly_database_host => "snap-01.ams.openstreetmap.org",
39     :primary_cluster => true
40   }
41 )
42
43 override_attributes(
44   :networking => {
45     :nameservers => ["66.28.0.45", "66.28.0.61"],
46     :search => ["ams.openstreetmap.org", "openstreetmap.org"]
47   },
48   :ntp => {
49     :servers => ["0.nl.pool.ntp.org", "1.nl.pool.ntp.org", "europe.pool.ntp.org"]
50   }
51 )
52
53 run_list(
54   "role[nl]"
55 )