From: Tom Hughes Date: Thu, 20 Jun 2013 18:06:59 +0000 (+0100) Subject: Sort NFS exports into a determinisic order X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/4b84fc36b50bdf2cb175c5f5bfffe94aab6d38c2 Sort NFS exports into a determinisic order --- diff --git a/cookbooks/nfs/templates/default/exports.erb b/cookbooks/nfs/templates/default/exports.erb index ba812c7c6..b136b8370 100644 --- a/cookbooks/nfs/templates/default/exports.erb +++ b/cookbooks/nfs/templates/default/exports.erb @@ -1,6 +1,6 @@ # DO NOT EDIT - This file is being maintained by Chef -<% @exports.each do |directory,clients| -%> -<%= directory -%> -sync,subtree_check<% clients.each do |address,options| -%> <%= address -%>(<%= options -%>)<% end %> +<% @exports.sort.each do |directory,clients| -%> +<%= directory -%> -sync,subtree_check<% clients.sort.each do |address,options| -%> <%= address -%>(<%= options -%>)<% end %> <% end -%> /store/planet -sync,subtree_check 146.179.159.168(rw) 146.179.159.170(rw) 128.40.168.104(ro) 128.40.168.103(ro) 128.40.168.100(ro)