]> git.openstreetmap.org Git - chef.git/blob - roles/tilecache.rb
Add comments.apis.dev.openstreetmap.org
[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     :squid_swappiness => {
16       :comment => "Prefer not to swapout to free memory",
17       :parameters => { 
18         "vm.swappiness" => "30"
19       }
20     }
21   }
22 )
23
24 run_list(
25   "role[geodns]",
26   "recipe[tilecache]"
27 )