]> git.openstreetmap.org Git - chef.git/blob - roles/ucl.rb
blogs: fix build in test
[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           :routes => {
13             "10.0.0.0/8" => { :via => "10.0.0.3" }
14           }
15         }
16       },
17       :external => {
18         :zone => "ucl",
19         :inet => {
20           :prefix => "24",
21           :gateway => "193.60.236.254"
22         }
23       }
24     },
25     :wireguard => {
26       :keepalive => 180
27     }
28   }
29 )
30
31 override_attributes(
32   :networking => {
33     :nameservers => ["10.0.0.3", "8.8.8.8", "8.8.4.4"],
34     :search => ["ucl.openstreetmap.org", "openstreetmap.org"]
35   },
36   :ntp => {
37     :servers => ["ntp1.ucl.ac.uk", "ntp2.ucl.ac.uk"]
38   }
39 )
40
41 run_list(
42   "role[gb]"
43 )