]> git.openstreetmap.org Git - chef.git/blob - roles/ucl.rb
Upgrade remaining UCL machines to chef 13
[chef.git] / roles / ucl.rb
1 name "ucl"
2 description "Role applied to all servers at UCL"
3
4 default_attributes(
5   :chef => {
6     :client => {
7       :version => "13.6.4"
8     }
9   },
10   :location => "Slough, England",
11   :networking => {
12     :roles => {
13       :internal => {
14         :inet => {
15           :prefix => "20",
16           :gateway => "10.0.0.3"
17         }
18       },
19       :external => {
20         :zone => "ucl",
21         :inet => {
22           :prefix => "24",
23           :gateway => "193.60.236.254"
24         }
25       }
26     }
27   }
28 )
29
30 override_attributes(
31   :networking => {
32     :nameservers => ["10.0.0.3", "8.8.8.8", "8.8.4.4"],
33     :search => ["ucl.openstreetmap.org", "openstreetmap.org"]
34   },
35   :ntp => {
36     :servers => ["ntp1.ucl.ac.uk", "ntp2.ucl.ac.uk"]
37   }
38 )
39
40 run_list(
41   "role[gb]"
42 )