]> git.openstreetmap.org Git - chef.git/blobdiff - roles/imagery.rb
supybot: attempt to fix for osmlab-editor-layer-index display bug
[chef.git] / roles / imagery.rb
index f8afc666b6b96cd8159c78dbb09afd6c9b7f1490..e1d4881a90cc6c58ad115a61083ebe52f4e6abbf 100644 (file)
@@ -11,6 +11,9 @@ default_attributes(
       }
     }
   },
+  :apt => {
+    :sources => ["nginx"]
+  },
   :sysctl => {
     :sockets => {
       :comment => "Increase size of connection queue",
@@ -24,10 +27,32 @@ default_attributes(
         "kernel.sched_min_granularity_ns" => 10000000,
         "kernel.sched_wakeup_granularity_ns" => 15000000
       }
+    },
+    :kernel_tfo_listen_enable => {
+      :comment => "Enable TCP Fast Open for listening sockets",
+      :parameters => {
+        "net.ipv4.tcp_fastopen" => 3
+      }
+    }
+  },
+  :nginx => {
+    :cache => {
+      :fastcgi => {
+        :enable => true,
+        :keys_zone => "fastcgi_cache_zone:256M",
+        :inactive => "45d",
+        :max_size => "51200M"
+      }
     }
   }
 )
 
 run_list(
-  "recipe[imagery]"
+  "recipe[imagery::au_agri]",
+  "recipe[imagery::gb_ea]",
+  "recipe[imagery::gb_hampshire_aerial]",
+  "recipe[imagery::gb_os_sv]",
+  "recipe[imagery::gb_surrey_aerial]",
+  "recipe[imagery::za_ngi_topo]",
+  "recipe[imagery::za_coct_aerial]"
 )