]> git.openstreetmap.org Git - chef.git/blob - roles/ucl.rb
Add tests for git cookbook
[chef.git] / roles / ucl.rb
1 name "ucl"
2 description "Role applied to all servers at UCL"
3
4 default_attributes(
5   :location => "Slough, England",
6   :networking => {
7     :roles => {
8       :internal => {
9         :inet => {
10           :prefix => "20",
11           :gateway => "10.0.0.3"
12         }
13       },
14       :external => {
15         :zone => "ucl",
16         :inet => {
17           :prefix => "24",
18           :gateway => "193.60.236.254"
19         }
20       }
21     }
22   },
23   :sysctl => {
24     :blackhole => {
25       :comment => "Force TCP level MTU probing because of known ICMP blackhole at UCL",
26       :parameters => {
27         "net.ipv4.tcp_mtu_probing" => "2",
28         "net.ipv4.tcp_base_mss" => "1024"
29       }
30     }
31   }
32 )
33
34 override_attributes(
35   :networking => {
36     :nameservers => ["10.0.0.3", "8.8.8.8", "8.8.4.4"],
37     :search => ["ucl.openstreetmap.org", "openstreetmap.org"]
38   },
39   :ntp => {
40     :servers => ["ntp1.ucl.ac.uk", "ntp2.ucl.ac.uk"]
41   }
42 )
43
44 run_list(
45   "role[gb]"
46 )