]> git.openstreetmap.org Git - chef.git/blob - roles/tilecache.rb
Update carto stylesheet to v2.37.1
[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   :sysctl => {
16     :network_conntrack_time_wait => {
17       :comment => "Only track completed connections for 30 seconds",
18       :parameters => {
19         "net.netfilter.nf_conntrack_tcp_timeout_time_wait" => "30"
20       }
21     },
22     :network_conntrack_max => {
23       :comment => "Increase max number of connections tracked",
24       :parameters => {
25         "net.netfilter.nf_conntrack_max" => "131072"
26       }
27     },
28     :squid_swappiness => {
29       :comment => "Prefer not to swapout to free memory",
30       :parameters => {
31         "vm.swappiness" => "30"
32       }
33     }
34   }
35 )
36
37 run_list(
38   "role[geodns]",
39   "recipe[tilecache]"
40 )