Vagrant.configure("2") do |config|
vagrant_version = Vagrant::VERSION.sub(/^v/, '')
config.vm.box = "wordpress.php7"
config.vm.box_url = "http://mysite.local/vagrant/" + config.vm.box + ".box"
config.vm.network :forwarded_port, guest: 22, host: 22, id: 'ssh'
config.vm.hostname = "wordpress.local"
config.vm.network "private_network", ip: "192.168.99.2", :netmask => '255.255.255.0', auto_config: false
config.ssh.host = "192.168.99.2"
config.ssh.port = "22"
config.vm.synced_folder "../../", "/vagrant", nfs: true
config.vm.synced_folder "../../www/", "/var/www/html", :mount_options => [ "dmode=777", "fmode=777" ]
config.vm.synced_folder "../../dbbackup/", "/dbbackup", :mount_options => [ "dmode=777", "fmode=777" ]
config.vm.synced_folder "../../dbupload/", "/dbupload", :mount_options => [ "dmode=777", "fmode=777" ]
config.vm.synced_folder "../../wwwbackup/", "/wwwbackup", :mount_options => [ "dmode=777", "fmode=777" ]
config.vm.synced_folder "../../wwwupload/", "/wwwupload", :mount_options => [ "dmode=777", "fmode=777" ]
config.vm.synced_folder "../../scripts/", "/scripts", :mount_options => [ "dmode=777", "fmode=777" ]
config.vm.provider "virtualbox" do |v|
v.name = "[2]wordpress.local"
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--cpus", "2"]
v.memory = 1024
end
config.vm.provision "shell", inline: "yum clean all"
config.vm.provision "shell", inline: "yum update -y"
config.vm.provision "puppet" do |puppet|
puppet.manifests_path = ["vm", "/vagrant/server/vagrant/manifests"]
puppet.manifest_file = "default.pp"
end
end
It seems that VirtualBox won't let you set the IP address directly. I've only managed to set the subnet using Vagrant :(
It seems that VirtualBox won't let you set the IP address directly. I've only managed to set the subnet using Vagrant :(
I'll change the way I do things......
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/bc9b97dc-ac37-4811-8a15-0bef00493e1f%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAN4dctqLJ7K0z9KMmvxQp61gzGj5pitwms0Uo5FZ8%2BhtJ8MThA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ewcKc9r5GfuxAZRJo0y-U%2Bm8sxvOyYas1UQjaQFUWn44w%40mail.gmail.com.