I’m trying to make Vagrantfile as simple and as native as possible. I want to take machine name and use it e.g. as a hostname, but as simple as possible in multi-machine config, so without making the whole
end block on define directive. Considering it’s possible to use thing like
config.vm.hostname as a variable in other places if defined, is it possible to get machine name, possibly ID and creation timestamp maybe?
I’ve tried googling, digging the official Vagrant Google Group discussion list, searching and asking on Reddit - no luck. Everywhere I get the very same answer: “if you want to make Vagrant VM hostname or provider-specific label, please do…”. Is there an easy/affordable way to use some VM properties as other variables’ content?
Corresponding Reddit thread which shows my problem and listing.
Thanks in advance.