From bc5106c37a73625376266903ca9159f68bcb1477 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 26 Oct 2014 19:26:43 +0000 Subject: [PATCH] Avoid relying on per-host options in NFS export files --- cookbooks/nfs/templates/default/exports.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.43.2