]> git.openstreetmap.org Git - chef.git/blob - roles/equinix.rb
9318fb2d055eabf2509a62bbff476528532ef0ff
[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 => ["8.8.8.8", "8.8.4.4", "2001:4860:4860::8888", "2001:4860:4860::8844"],
7     :dnssec => "no",
8     :roles => {
9       :internal => {
10         :inet => {
11           :prefix => "20",
12           :gateway => "10.0.48.10"
13         }
14       },
15       :external => {
16         :zone => "ams",
17         :inet => {
18           :prefix => "27",
19           :gateway => "130.117.76.1"
20         },
21         :inet6 => {
22           :prefix => "64",
23           :gateway => "2001:978:2:2C::172:1"
24         }
25       }
26     }
27   },
28   :web => {
29     :backends => %w[rails1 rails2 rails3],
30     :fileserver => "ironbelly",
31     :readonly_database_host => "karm.ams.openstreetmap.org",
32     :primary_cluster => true
33   }
34 )
35
36 override_attributes(
37   :networking => {
38     :search => ["ams.openstreetmap.org", "openstreetmap.org"]
39   },
40   :ntp => {
41     :servers => ["0.nl.pool.ntp.org", "1.nl.pool.ntp.org", "europe.pool.ntp.org"]
42   }
43 )
44
45 run_list(
46   "role[nl]"
47 )