We have a Vagrant setup running under Ubuntu 12.04 as a guest OS in our team, where the host OS is Windows 7 or 8. What I would like to do is get the Windows hostname of the host computer and add it to the name roaming host during setup, for example
config.vm.hostname = <windows hostname>-web
This is because we have several developers connecting to external services from their local development machines, and if we all have the same host name (since the Vagrant file is controlled by the source and the same for everyone), then in the magazines for these external we can not distinguish those who made a request for a service. I thought that if we could dynamically obtain the host name from the host OS, this would be a good way to identify the individual guest OSs running on each development machine.
Is this possible, and if so, what is the best way to achieve it?
vagrant virtualbox vagrantfile puppet host
Adrian walls
source share