]> git.openstreetmap.org Git - chef.git/blob - roles/ucl.rb
Ensure wikibase uses the correct repository URL
[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     :interfaces => {
8       :internal => {
9         :role => :internal,
10         :metric => 200,
11         :inet => {
12           :prefix => "20",
13           :gateway => "10.0.0.3",
14           :routes => {
15             "10.0.0.0/8" => { :via => "10.0.0.3" }
16           }
17         }
18       }
19     },
20     :wireguard => {
21       :keepalive => 180
22     }
23   }
24 )
25
26 override_attributes(
27   :networking => {
28     :nameservers => ["10.0.0.3", "8.8.8.8", "8.8.4.4"],
29     :search => ["ucl.openstreetmap.org", "openstreetmap.org"]
30   },
31   :ntp => {
32     :servers => ["ntp1.ucl.ac.uk", "ntp2.ucl.ac.uk"]
33   }
34 )
35
36 run_list(
37   "role[gb]"
38 )