]> 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 918c7b5314d5fed1a35f1bd2de1345f4addd47ba..053987f1b49536a8feba6ceb92d7374772e91f22 100644 (file)
@@ -25,7 +25,9 @@ cache_effective_user proxy
 cache_effective_group proxy
 
 #FIXME - configurable
 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 -%>
 <% if node[:squid][:version] == "2" -%>
 cache_swap_log /var/spool/squid/%s
 <% end -%>