audiolize / vagrant-softlayer

This is a Vagrant plugin that adds a SoftLayer provider to Vagrant, allowing Vagrant to control and provision SoftLayer CCI instances.
MIT License
42 stars 15 forks source link

NFS synched folders and SL configuration #56

Open lonniev opened 9 years ago

lonniev commented 9 years ago

Attempting to use NFS synched folders with a Mac OS host and Windows guests on Softlayer and after enabling the necessary NFS service within the Windows servers, I see that /etc/exports is not updated and that I get the error about no host IP address provided

Comparing the vagrant softlayer code with the vagrant libvirt code, I see that apparently it is the responsibility of the provider code to discover and set the nfs_host_ip and nfs_machine_ip environment variables--and that SL does not appear to do this.

If I'm right, can the vagrant softlayer documentation be updated to state that NFS support isn't available and can this issue be an enhancement request for that support?

If I'm wrong, what is the ordered set of configuration statements to get NFS support to work for vagrant softlayer?

(Why am I going through all this trouble? Because the chef-solo Windows code does not pre-create the full paths that the rsync folder sync requires and rsync errors out when attempting to sync the chef folders.)

ju2wheels commented 9 years ago

@lonniev, can you please post a link to the section of the vagrant-libvirt you were comparing to vagrant-softlayer and ill review it later today.

lonniev commented 9 years ago

https://github.com/pradels/vagrant-libvirt/blob/master/lib/vagrant-libvirt/action/prepare_nfs_settings.rb

lonniev commented 9 years ago

https://github.com/audiolize/vagrant-softlayer/blob/master/lib/vagrant-softlayer/action/sync_folders.rb

Looking at what this is doing for rsync, I wonder if I am missing some config that would get the rsync choice to work. It looks like this code is attempting to pre-create the directories on the guest before rsyncing into them. So, why don't those directories exist when checked afterwards and why does rsync work for path-less copies but not for copies into multi-path directories?

lonniev commented 9 years ago

Does the chef-solo provisioner not use the sync_folders code that the vagrant-softlayer provider offers? If so, that would suggest how rsync would work in one context but then fail in the next.

lonniev commented 9 years ago

Conflating issues, the one I have with chef-solo is the same (I think) as https://github.com/mitchellh/vagrant/issues/5255

lonniev commented 9 years ago

Looks very much like getting pre-release Vagrant 1.7.3 would help me.

I currently install vagrant from the dmg at vagrantup.com; how does one get the pre-release installed?