]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/squid/templates/default/squid.conf.erb
Allow multiple squid cache dirs to be specified
[chef.git] / cookbooks / squid / templates / default / squid.conf.erb
index 659b3c8cb43034bcb1ccfa333128674d895a61b0..053987f1b49536a8feba6ceb92d7374772e91f22 100644 (file)
@@ -3,7 +3,7 @@
 #FIXME - configurable
 cache_mem  <%= node[:squid][:cache_mem] %>
 
-max_filedescriptors 65536
+max_filedescriptors 98304
 
 #used by squidclient / munin
 http_port 3128
@@ -25,7 +25,9 @@ cache_effective_user proxy
 cache_effective_group proxy
 
 #FIXME - configurable
-cache_dir <%= node[:squid][:cache_dir] %>
+<% Array(node[:squid][:cache_dir]).each do |cache_dir| -%>
+cache_dir <%= cache_dir %>
+<% end -%>
 <% if node[:squid][:version] == "2" -%>
 cache_swap_log /var/spool/squid/%s
 <% end -%>