Vagrantfile doesn't notice my shared folder settings
This is my Vagrantfile.
Vagrant.configure("2") do |config|
config.vm.box = "lucid64"
config.vm.box_url = "http://files.vagrantup.com/lucid64.box"
config.vm.network :private_network, ip: "192.168.2.99"
config.ssh.forward_agent = true
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 1024]
v.customize ["modifyvm", :id, "--name", "my-first-box"]
v.gui = false
end
config.vm.synced_folder "C:/wamp/www/yapites", "/var/www", id:
"vagrant-root"
config.vm.provision :shell, :inline =>
"if [[ ! -f /apt-get-run ]]; then sudo apt-get update && sudo
touch /apt-get-run; fi"
config.vm.provision :shell, :inline => 'echo -e "mysql_root_password=1
controluser_password=awesome" > /etc/phpmyadmin.facts;'
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.module_path = "modules"
puppet.options = ['--verbose']
end
end
I believe there is a small mistake here. config.vm.synced_folder
"C:/wamp/www/yapites", "/var/www", id: "vagrant-root".
I can't see my yapites folder under /var/www and see basic things like
index.html.
What may be causing it?
No comments:
Post a Comment