]> git.openstreetmap.org Git - chef.git/blob - roles/equinix.rb
Add test for squid cookbook
[chef.git] / roles / equinix.rb
1 name "equinix"
2 description "Role applied to all servers at Equinix"
3
4 default_attributes(
5   :networking => {
6     :nameservers => ["66.28.0.45", "66.28.0.61"],
7     :roles => {
8       :internal => {
9         :inet => {
10           :prefix => "20",
11           :gateway => "10.0.48.10"
12         }
13       },
14       :external => {
15         :zone => "ams",
16         :inet => {
17           :prefix => "27",
18           :gateway => "130.117.76.1"
19         },
20         :inet6 => {
21           :prefix => "64",
22           :gateway => "2001:978:2:2C::172:1",
23           :routes => {
24             "2001:978:2:2c::/64" => { :type => "unreachable" },
25             "2001:4860::/32" => { :type => "unreachable" },
26             "2a00:1450:4000::/37" => { :type => "unreachable" }
27           }
28         }
29       }
30     }
31   },
32   :web => {
33     :backends => %w[rails1 rails2 rails3],
34     :fileserver => "ironbelly",
35     :readonly_database_host => "karm.ams.openstreetmap.org",
36     :primary_cluster => true
37   }
38 )
39
40 override_attributes(
41   :networking => {
42     :search => ["ams.openstreetmap.org", "openstreetmap.org"]
43   },
44   :ntp => {
45     :servers => ["0.nl.pool.ntp.org", "1.nl.pool.ntp.org", "europe.pool.ntp.org"]
46   }
47 )
48
49 run_list(
50   "role[nl]"
51 )