]> git.openstreetmap.org Git - chef.git/blob - roles/ic.rb
81beb9efab8610c1dc202da126d26333b15124d7
[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   :chef => {
11     :client => {
12       :version => "13.6.4"
13     }
14   },
15   :networking => {
16     :nameservers => ["8.8.8.8", "146.179.159.177"],
17     :roles => {
18       :internal => {
19         :inet => {
20           :prefix => "27",
21           :gateway => "146.179.159.177"
22         }
23       },
24       :external => {
25         :zone => "ic",
26         :inet => {
27           :prefix => "27",
28           :gateway => "193.63.75.97"
29         },
30         :inet6 => {
31           :prefix => "64",
32           :gateway => "fe80::5:73ff:fea0:1"
33         }
34       }
35     }
36   },
37   :web => {
38     :backends => %w[rails1 rails2 rails3],
39     :fileserver => "ironbelly",
40     :readonly_database_host => "karm.ic.openstreetmap.org"
41   }
42 )
43
44 override_attributes(
45   :networking => {
46     :search => ["ic.openstreetmap.org", "openstreetmap.org"]
47   },
48   :ntp => {
49     :servers => ["0.uk.pool.ntp.org", "1.uk.pool.ntp.org", "europe.pool.ntp.org"]
50   }
51 )
52
53 run_list(
54   "role[gb]"
55 )