]> git.openstreetmap.org Git - chef.git/blob - roles/tilecache.rb
put pummelzacken into import mode
[chef.git] / roles / tilecache.rb
1 name "tilecache"
2 description "Role applied to all tile cache servers"
3
4 default_attributes(
5   :accounts => {
6     :groups => {
7       :proxy => {
8         :members => [:tomh, :grant, :matt, :jburgess]
9       }
10     }
11   },
12   :apt => {
13     :sources => ["nginx"]
14   },
15   :munin => {
16     :plugins => {
17       :cpu => {
18         :user => { :warning => 200, :critical => 400 }
19       }
20     }
21   },
22   :sysctl => {
23     :network_conntrack_time_wait => {
24       :comment => "Only track completed connections for 30 seconds",
25       :parameters => {
26         "net.netfilter.nf_conntrack_tcp_timeout_time_wait" => "30"
27       }
28     },
29     :network_conntrack_max => {
30       :comment => "Increase max number of connections tracked",
31       :parameters => {
32         "net.netfilter.nf_conntrack_max" => "131072"
33       }
34     },
35     :kernel_tfo_listen_enable => {
36       :comment => "Enable TCP Fast Open for listening sockets",
37       :parameters => {
38         "net.ipv4.tcp_fastopen" => 3
39       }
40     },
41     :squid_swappiness => {
42       :comment => "Prefer not to swapout to free memory",
43       :parameters => {
44         "vm.swappiness" => "30"
45       }
46     }
47   }
48 )
49
50 run_list(
51   "recipe[tilecache]"
52 )