]> git.openstreetmap.org Git - chef.git/blob - roles/ucl.rb
Enable netplan for various miscellaneous machines
[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     :netplan => true,
8     :roles => {
9       :internal => {
10         :inet => {
11           :prefix => "20",
12           :gateway => "10.0.0.3"
13         }
14       },
15       :external => {
16         :zone => "ucl",
17         :inet => {
18           :prefix => "24",
19           :gateway => "193.60.236.254"
20         }
21       }
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 )