Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/precise64"
end
Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/precise64"
config.vm.define "box1"
end
Current machine states:
box1 not created (virtualbox)
Vagrant.configure("2") do |config|
config.vm.define vm_name = "web" do |node|
node.vm.box = "hashicorp/precise64"
node.vm.hostname = vm_name
end
end
Vagrant.configure("2") do |config|
config.vm.define vm_name = "web" do |node|
node.vm.box = "hashicorp/precise64"
node.vm.hostname = vm_name
end
config.vm.define vm_name = "db" do |node|
node.vm.box = "hashicorp/precise64"
node.vm.hostname = vm_name
end
end
Vagrant.configure("2") do |config|
prefix="node"
#node box
(1..4).each do |i|
vm_name = "#{prefix}#{i}"
config.vm.define vm_name do |node|
node.vm.box = "hashicorp/precise64"
node.vm.hostname = vm_name
end
end
end
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/1fbe6486-0577-4f4a-857e-3d0a5d3e59e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.