same principle
# Vagrantfile API/syntax version. Don't touch unless you know what you're
doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.define "n1" do |n1|
n1.vm.hostname = "n1"
#this is n1 local, at this point n2 does not exists.
n1.vm.provision "shell", inline: "hello n1 provision"
end
config.vm.define "n2" do |n2|
n2.vm.hostname = "n2"
#this is n2 local, at this point n1 already exists.
n2.vm.provision "shell", inline: "hello n2 provision"
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/CAHqq0ez%2BLjuL50TrYWpD8c44Qc0DzNG_UpUOr0UWKkRv7s3%3D1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.