ThanksAlso, if you have any good tutorial how do I set up Virtual machine in a way that when I ssh to it I see which role that VM has... For example that it has base roleHere it is what I put under VagrantfileI don't know why.... Followed Vagrant docsHi,I set up virtual machine with help of Vagrant. Also set up Chef - basic stuff so it has folder for cookbooks but it ended under tmp folder instead of usr and building apache2 failed
Vagrant::Config.run do |config|
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["cookbooks", [:vm, "/usr/local/cookbooks"]]
chef.add_recipe "apache2"
chef.add_role "web"
end
endBut before complete boot of my VM I got this error
-- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1/cookbooks
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-csc-1 /tmp/vagrant-chef-1/chef-solo-1/cookbooks
Is it possible to edit cookbooks under tem so I don't have to destroy VM every single time and re-edit Vagrantfile?I am a noob here. So, if you would be so kind and help me to resolve this
Archive powered by MHonArc 2.6.16.