Teach tilecache cookbook to return caches sorted (deterministic)
[chef.git] / cookbooks / tilecache / recipes / default.rb
index 23edf015557950d6065b7e6db4c3be5b16b2ed97..5b44be21f313db1cb067862da07f61062bd50b13 100644 (file)
@@ -19,7 +19,7 @@
 
 include_recipe "squid"
 
-tilecaches = search(:node, "roles:tilecache")
+tilecaches = search(:node, "roles:tilecache").sort_by { |n| n[:hostname] }
 
 squid_fragment "tilecache" do
   template "squid.conf.erb"