]> git.openstreetmap.org Git - chef.git/blob - roles/tilecache.rb
Tilecache: add fallback to cache parents
[chef.git] / roles / tilecache.rb
1 name "tilecache"
2 description "Role applied to all tile cache servers"
3
4 default_attributes(
5   :sysctl => {
6     :network_conntrack_time_wait => {
7       :comment => "Only track completed connections for 30 seconds",
8       :parameters => { 
9         "net.netfilter.nf_conntrack_tcp_timeout_time_wait" => "30"
10       }
11     },
12     :squid_swappiness => {
13       :comment => "Prefer not to swapout to free memory",
14       :parameters => { 
15         "vm.swappiness" => "30"
16       }
17     }
18   }
19 )
20
21 run_list(
22   "role[geodns]",
23   "recipe[tilecache]"
24 )