projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
985c2fc
)
Sort tile cache addresses into a deterministic order
author
Tom Hughes
<tom@compton.nu>
Thu, 20 Jun 2013 16:24:09 +0000
(17:24 +0100)
committer
Tom Hughes
<tom@compton.nu>
Thu, 20 Jun 2013 16:28:12 +0000
(17:28 +0100)
cookbooks/tilecache/templates/default/squid.conf.erb
patch
|
blob
|
history
diff --git
a/cookbooks/tilecache/templates/default/squid.conf.erb
b/cookbooks/tilecache/templates/default/squid.conf.erb
index e2f74b6e83fbe976ae618eaadc3e243165e1a00c..c33d4ed92993a1b348003301b75e539cc47c92f6 100644
(file)
--- a/
cookbooks/tilecache/templates/default/squid.conf.erb
+++ b/
cookbooks/tilecache/templates/default/squid.conf.erb
@@
-19,7
+19,7
@@
cache_peer_access osmtileFileAccel deny all
#Create an unlimited pool for cache IP addresses
acl pool_unlimited src 127.0.0.1
<% @caches.each do |cache| -%>
-<% cache.ipaddresses(:family => :inet, :role => :external) do |address| -%>
+<% cache.ipaddresses(:family => :inet, :role => :external)
.sort.each
do |address| -%>
acl pool_unlimited src <%= address %>
<% end -%>
<% end -%>