Last active
August 29, 2015 14:23
-
-
Save dairennlombard/9255f9705db18706a3cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Chef::DataBagItem.load('kmtcnfs', 'nfs')['nfsexports'].each do |exporthash| | |
exporthash.each do |serverpathkey, _clientpathkey| | |
nfs_export "food_critic_safe_#{serverpathkey['serverpath']}" do | |
directory serverpathkey['serverpath'] | |
network node['network']['CIDR'] | |
writeable false | |
sync true | |
options ['no_root_squash'] | |
only_if { File.exist?(serverpathkey['serverpath']) } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment