]> git.openstreetmap.org Git - chef.git/blob - roles/ic.rb
Run memcached as the memcache user
[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 => [ "146.179.159.177" ],
12     :roles => {
13       :internal => {
14         :inet => {
15           :prefix => "27",
16           :gateway => "146.179.159.177"
17         }
18       },
19       :external => {
20         :zone => "ic",
21         :inet => {
22           :prefix => "27",
23           :gateway => "193.63.75.97"
24         },
25         :inet6 => {
26           :prefix => "64",
27           :gateway => "fe80::5:73ff:fea0:1"
28         }
29       }
30     }
31   }
32 )
33
34 override_attributes(
35   :networking => {
36     :search => [ "ic.openstreetmap.org", "openstreetmap.org" ]
37   },
38   :ntp => {
39     :servers => [ "0.uk.pool.ntp.org", "1.uk.pool.ntp.org", "europe.pool.ntp.org" ]
40   }
41 )
42
43 run_list(
44   "role[gb]"
45 )