fgrehm / vagrant-cachier

Caffeine reducer
http://fgrehm.viewdocs.io/vagrant-cachier
MIT License
1.07k stars 111 forks source link

Support for extra synced_folder options #78

Closed ernoaapa closed 10 years ago

ernoaapa commented 10 years ago

Added ability to pass extra synced_folder options through config.cache.sync_opts -configuration.

fgrehm commented 10 years ago

:clap: Thanks a lot, this is just great! :clap:

It has a lot of "future proof"nes embedded in, will even allow us to deprecate the enable_nfs flag entirely and superseeds GH-68! :-)

Here's a complete example of how it'll end up working if all goes well:

Vagrant.configure("2") do |config|
  config.vm.box = 'your-box'
  if Vagrant.has_plugin?("vagrant-cachier")
    config.cache.auto_detect = true
    config.cache.synced_folder_opts = {
      create: true, 
      type: 'nfs', 
      mount_options: ['rw', 'vers=3', 'tcp', 'nolock']
    }
  end
end

I'm going to merge this in on the next branch that I'm working on along with other things. I'll keep you posted!

ernoaapa commented 10 years ago

Cool! Looking forward to the next release!

fgrehm commented 10 years ago

Things are looking good over that branch, if all goes well 0.6.0 will come out over the weekend =]