]> git.openstreetmap.org Git - chef.git/blob - roles/ic.rb
5724b798ec4c92ffd0a26ab6d6a79c48de12afd7
[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   :sysfs => {
33     :cpufreq_ondemand_low => {
34       :comment => "Tune the ondemand CPU frequency governor for reduced scaling",
35       :parameters => {
36         "devices/system/cpu/cpufreq/ondemand/up_threshold" => "95",
37         "devices/system/cpu/cpufreq/ondemand/sampling_down_factor" => "1"
38       }
39     }
40   }
41 )
42
43 override_attributes(
44   :networking => {
45     :search => ["ic.openstreetmap.org", "openstreetmap.org"]
46   },
47   :ntp => {
48     :servers => ["0.uk.pool.ntp.org", "1.uk.pool.ntp.org", "europe.pool.ntp.org"]
49   }
50 )
51
52 run_list(
53   "role[gb]"
54 )