Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Synced cookbooks with wrong path #64

Closed
trongrg opened this issue Dec 18, 2013 · 3 comments
Closed

Synced cookbooks with wrong path #64

trongrg opened this issue Dec 18, 2013 · 3 comments

Comments

@trongrg
Copy link

trongrg commented Dec 18, 2013

The problem occured first with CentOS 6.5 minimal box created with veewee (https://github.com/jedi4ever/veewee/blob/master/templates/CentOS-6.5-x86_64-minimal/definition.rb). Then I tried and reproduced it with the devbox.

Following is the Vagrantfile

VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "devbox"
  config.vm.provision :chef_solo do |chef|
    chef.cookbooks_path = "./my-recipes/cookbooks"
  end
end

After the VM boots up, vagrant cannot provision it because of missing shared folders Shared folders that Chef requires are missing on the virtual machine

After some debugging, I figured out that vagrant-parallels synced the cookbook folders to the wrong locations.

This is what i get on the VM:

vagrant@ubuntu:~$ ls -alh /tmp/vagrant-chef-1/chef-solo-1/cookbooks
lrwxrwxrwx 1 vagrant root 52 Dec 19 03:31 /tmp/vagrant-chef-1/chef-solo-1/cookbooks -> /media/psf//tmp/vagrant-chef-1/chef-solo-1/cookbooks
vagrant@ubuntu:~$ ls -alh /media/psf/
total 4.0K
drwxr-xr-x 1 root    root       0 Dec 18 21:31 .
drwxr-xr-x 4 root    root    4.0K Aug 19 00:53 ..
drwxr-xr-x 1 vagrant vagrant   68 Dec 15 10:56 tmp_vagrant-chef-1_chef-solo-1_cookbooks
drwxr-xr-x 1 vagrant vagrant  238 Dec 18 22:30 vagrant

So instead of sync-ing the cookbooks to /media/psf//tmp/vagrant-chef-1/chef-solo-1/cookbooks, vagrant-parallels syncs them to /media/psf/tmp_vagrant-chef-1_chef-solo-1_cookbooks

@ghost ghost assigned legal90 Dec 18, 2013
@legal90
Copy link
Collaborator

legal90 commented Dec 18, 2013

Oh... Looks like it is my mistake. I will fix it ASAP

@legal90
Copy link
Collaborator

legal90 commented Dec 18, 2013

Fix has been included to v0.1.1 and published now.
@trongrg, update your vagrant-parallels plugin, please.

@trongrg
Copy link
Author

trongrg commented Dec 19, 2013

It is fixed. Thanks 👍

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants