Vagrant.configure(2) do |config|
config.vm.define "joomla" do |joomla|
# Base temmplate for virtualbox, we use debian 8.9.0 here
#joomla.vm.box = "debian/jessie64"
joomla.vm.box = "ubuntu/trusty64"
# Domain on which our application will respond later on
joomla.vm.hostname = "joomla.dev"
# IP address will be used by the VM
joomla.vm.network :private_network, ip: "192.168.5.2"
#joomla.vm.network :private_network, ip: "192.168.5.3"
# Tell vagrant to run ansible as a provisioner
joomla.vm.provision :ansible do |ansible|
# where the playbook is located
ansible.playbook = "provisioning/playbook.yml"
# show the ansible-playbook command used by vagrant
ansible.verbose = true
end
end
# Access the shared vagrant directory via NFS, otherwise slow on mac
and windows
config.vm.synced_folder ".", "/vagrant", type: "nfs"
config.vm.provider "virtualbox" do |v|
# tell virtualbox to give our machine 1Gb RAM and 1 Cores
v.memory = 1024
v.cpus =1
end
end
понедельник, 30 октября 2017 г., 19:40:55 UTC+3 пользователь
[email protected] написал:
>
> How setting two or more "ip" for one interface in Vagrantfile?
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/eaf19ee1-3ca4-47a4-81aa-569e0fb5e3fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.