jedi4ever/veewee — Issue #134: Broken mount order for chef data_bags, provisioning, cookbooks and cache paths 
Author: hh
Created: 2011-10-13 22:34:38+00:00
State: open

```ruby
Vagrant::Config.run do |config|
config.vm.define :chef do |chef_config|
chef_config.vm.box = "vv17"
chef_config.vm.customize do |vm|
vm.name = "Chef Server"
vm.vram_size = 12
end
chef_config.vm.provision :chef_solo do |chef|
#chef.data_bags_path = "data_bags" # mounts first, before anything else
chef.provisioning_path = "/vagrant" # by default where the cache is... I want it shared, mounts second
chef.cookbooks_path = "cookbooks", "site-cookbooks" # mounts third and fourth
end
chef_config.vm.share_folder "v-chef-cache", "/chefcache", "cache" # mounts last
end
```
results in:

```
[chef] VM booted and ready for use!
[chef] Mounting shared folders...
[chef] -- v-csdb-3: /chefcache/chef-solo-3
[chef] -- v-root: /vagrant
[chef] -- v-csc-1: /chefcache/chef-solo-1
[chef] -- v-csc-2: /chefcache/chef-solo-2
[chef] -- v-chef-cache: /chefcache
[chef] Running provisioner: Vagrant::Provisioners::ChefSolo...
```

Where v-csdb-3 was the data_bags path... obviously things aren't going to work.

Order in the config file doesn't seem to matter.