You may have a look at the vagrant-triggers plugin, this is probably what you are looking for.
Cheers, Torben Am 27.01.2016 5:15 vorm. schrieb "Stathy Touloumis" <[email protected]>: > Is there documentation as to how I can capture machine information that > can be used during the provision process/scripts? > > I'd like to create a hosts file based on a number of machines that come up > and push the host file to all the machines during provisioning. So > something like > > vagrant up h1 h2 h3 --no-provision > > vagrant provision h1 h2 h3 > <do stuff based on configuration of the all the machines that have been > setup> > > Thanks, > > -- > 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/ec64b5a7-053e-4d0c-8859-43f4239d54c6%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/ec64b5a7-053e-4d0c-8859-43f4239d54c6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CACN%2Ba_YMLoyhth85Wwx-bu6hwcu7wAZ5OTLT-hk3%2BSGF%2BKDgNg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
