]> git.openstreetmap.org Git - chef.git/blob - roles/ucl.rb
Move UCL hosts to use interface inheritance for network configuration
[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         :inet => {
10           :role => :internal,
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     },
19     :wireguard => {
20       :keepalive => 180
21     }
22   }
23 )
24
25 override_attributes(
26   :networking => {
27     :nameservers => ["10.0.0.3", "8.8.8.8", "8.8.4.4"],
28     :search => ["ucl.openstreetmap.org", "openstreetmap.org"]
29   },
30   :ntp => {
31     :servers => ["ntp1.ucl.ac.uk", "ntp2.ucl.ac.uk"]
32   }
33 )
34
35 run_list(
36   "role[gb]"
37 )