From: Tom Hughes Date: Sun, 26 Oct 2014 19:26:43 +0000 (+0000) Subject: Avoid relying on per-host options in NFS export files X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/bc5106c37a73625376266903ca9159f68bcb1477?ds=sidebyside Avoid relying on per-host options in NFS export files --- diff --git a/cookbooks/nfs/templates/default/exports.erb b/cookbooks/nfs/templates/default/exports.erb index 0c2eb6ce7..f0f0a7688 100644 --- a/cookbooks/nfs/templates/default/exports.erb +++ b/cookbooks/nfs/templates/default/exports.erb @@ -1,6 +1,8 @@ # DO NOT EDIT - This file is being maintained by Chef <% @exports.sort.each do |directory,clients| -%> -<%= directory -%> -sync,subtree_check<% clients.sort.each do |address,options| -%> <%= address -%>(<%= options -%>)<% end %> +<% clients.sort.each do |address,options| -%> +<%= directory -%> -sync,subtree_check,<%= options %> <%= address %> <% end -%> -/store/planet -sync,subtree_check 146.179.159.168(rw) 146.179.159.170(rw) +<% end -%> +/store/planet -sync,subtree_check,rw 146.179.159.168 146.179.159.170