简体   繁体   中英

When I do `vagrant provision`, what does it happen in my dev box?

I'm sure the answer is based on how my setup and etc… but I'd like to figure out what file gets called and such. I'm using vagrant-berkshelf and vagrant-omnibus plugins. Berksfile is empty, Vagrantfile is using 'ubuntu/trusty64' and provisioner is chef.

config.vm.provision :chef_solo do |chef|
  chef.run_list = []
end

The reason why I'm asking is because I can call vagrant provision , it runs successfully, but when I get in the box and call chef-solo , it fails. So I'd like to understand how that works.

Chef-Omnibus installs Chef into a different location than Vagrant's normal Chef provisioner. So it's there, it's just (apparently) not in your path.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM