From 4b84fc36b50bdf2cb175c5f5bfffe94aab6d38c2 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 20 Jun 2013 19:06:59 +0100 Subject: [PATCH] Sort NFS exports into a determinisic order --- cookbooks/nfs/templates/default/exports.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.43.2