title: How to get env var from one VM and pass it to another VM in Vagrantfile?
body: <p>Would like to create three VMs using Vagrantfile.</p>
  <p>Provisioning for VM#1 (first in sequence) runs a shell script (inside the guest) which prints a secret-token. I would like to &quot;automatically&quot; (i.e. through Vagrantfile) retrieve that secret-token generated while provisioning VM1, and pass it as an argument to provisioning scripts of VM#2 and VM#3. Is this possible ? If so how ?</p>
  <p>Please note that I can very well create the 3 VMs, but extracting the secret-token from VM1 (automatically i.e. in the process of running <code>vagrant up</code>) and passing it to provisioning logic of other VMs is all I am missing.</p>