]> git.openstreetmap.org Git - chef.git/blob - roles/tilecache.rb
Switch the web site to use poldi for nominatim
[chef.git] / roles / tilecache.rb
1 name "tilecache"
2 description "Role applied to all tile cache servers"
3
4 default_attributes(
5   :apt => {
6     :sources => ["nginx"]
7   },
8   :sysctl => {
9     :network_conntrack_time_wait => {
10       :comment => "Only track completed connections for 30 seconds",
11       :parameters => {
12         "net.netfilter.nf_conntrack_tcp_timeout_time_wait" => "30"
13       }
14     },
15     :network_conntrack_max => {
16       :comment => "Increase max number of connections tracked",
17       :parameters => {
18         "net.netfilter.nf_conntrack_max" => "131072"
19       }
20     },
21     :squid_swappiness => {
22       :comment => "Prefer not to swapout to free memory",
23       :parameters => {
24         "vm.swappiness" => "30"
25       }
26     }
27   }
28 )
29
30 run_list(
31   "role[geodns]",
32   "recipe[tilecache]"
33 )