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