]> git.openstreetmap.org Git - chef.git/blob - roles/yevaud.rb
Squid: add ICP port
[chef.git] / roles / yevaud.rb
1 name "yevaud"
2 description "Master role applied to yevaud"
3
4 default_attributes(
5   :munin => {
6     :plugins => {
7       :cpu => {
8         :system => { 
9           :warning => 500,
10           :critical => 600
11         }
12       },
13       :load => {
14         :load => { 
15           :warning => 150,
16           :critical => 200
17         }
18       },
19       :ipmi_fans => {
20         :contacts => "null",
21       },
22       :ipmi_temp => {
23         :contacts => "null",
24       },
25       :sensors_fan => {
26         :contacts => "null"
27       },
28       :sensors_temp => {
29         :contacts => "null"
30       },
31       :sensors_volt => {
32         :contacts => "null"
33       }
34     }
35   },
36   :networking => {
37     :interfaces => {
38       :internal_ipv4 => {
39         :interface => "eth0",
40         :role => :internal,
41         :family => :inet,
42         :address => "10.0.0.15"
43       },
44       :external_ipv4 => {
45         :interface => "eth1",
46         :role => :external,
47         :family => :inet,
48         :address => "128.40.168.104"
49       }
50     }
51   },
52   :postgresql => {
53     :versions => [ "9.1" ],
54     :settings => {
55       :defaults => {
56         :shared_buffers => "3GB",
57         :maintenance_work_mem => "7144MB",
58         :effective_cache_size => "8GB"
59       }
60     }
61   },
62   :sysctl => {
63     :postgres => {
64       :comment => "Increase shared memory for postgres",
65       :parameters => { 
66         "kernel.shmmax" => 4 * 1024 * 1024 * 1024,
67         "kernel.shmall" => 4 * 1024 * 1024 * 1024 / 4096
68       }
69     }
70   },
71   :tile => {
72     :node_file => "/store/database/nodes",
73     :styles => {
74       :default => {
75         :tile_directories => [
76           { :name => "/store/tiles/default-low", :min_zoom => 0, :max_zoom => 16 },
77           { :name => "/store/tiles/default-high", :min_zoom => 17, :max_zoom => 19 }
78         ]
79       }
80     }
81   }
82 )
83
84 run_list(
85   "role[ucl-internal]",
86   "role[tile]"
87 )