Accessing host-X information from within a Vagrantfile
I am building a multi-node load testing Vagrantfile using vagrant-aws. What I would like to do is setup a "server" within one host configure block then grab a reference to that created VM and gather information from it that I can place into chef_json attributes in subsequent host configuration blocks.
config.vm.define :server do |server|
server.vm.box = "server"
config.vm.define :client do |client|
server.vm.box = "client"
server = some_method_that_gives_me_the_server_vm_object("server")