]> git.openstreetmap.org Git - chef.git/blob - roles/ic.rb
ea4d17b7a6814d58f34ba64de44cc7c78a389e68
[chef.git] / roles / ic.rb
1 name "ic"
2 description "Role applied to all servers at Imperial College"
3
4 default_attributes(
5   :accounts => {
6     :users => {
7       :icladmin => { :status => :user }
8     }
9   },
10   :networking => {
11     :nameservers => ["8.8.8.8", "146.179.159.177"],
12     :roles => {
13       :internal => {
14         :inet => {
15           :prefix => "27",
16           :gateway => "146.179.159.177"
17         },
18         :inet6 => {
19           :method => "manual"
20         }
21       },
22       :external => {
23         :zone => "ic",
24         :inet => {
25           :prefix => "27",
26           :gateway => "193.63.75.97"
27         },
28         :inet6 => {
29           :prefix => "64",
30           :gateway => "fe80::5:73ff:fea0:1"
31         }
32       }
33     }
34   }
35 )
36
37 override_attributes(
38   :networking => {
39     :search => ["ic.openstreetmap.org", "openstreetmap.org"]
40   },
41   :ntp => {
42     :servers => ["0.uk.pool.ntp.org", "1.uk.pool.ntp.org", "europe.pool.ntp.org"]
43   }
44 )
45
46 run_list(
47   "role[gb]"
48 )