Sort NFS exports into a determinisic order
authorTom Hughes <tom@compton.nu>
Thu, 20 Jun 2013 18:06:59 +0000 (19:06 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 20 Jun 2013 18:06:59 +0000 (19:06 +0100)
cookbooks/nfs/templates/default/exports.erb

index ba812c7c6afa7f191fab894d2903cdaacefee0ad..b136b8370f1efd49146ddcde31534e0eee590212 100644 (file)
@@ -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)