Ultimately, through numerous more complex trials, figured this was the
easiest route, using the shell provisioner, placing something like this:
config.vm.provision "shell", path: "setup-all.sh" # ssh convenience
The script in question does the following:
cat <<- CONFIGEOF > /etc/ssh/ssh_config
Host server01
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
IdentitiesOnly yes
User vagrant
IdentityFile /vagrant/.vagrant/machines/server/virtualbox/private_key
PasswordAuthentication no
Host workstation01
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
IdentitiesOnly yes
User vagrant
IdentityFile /vagrant/.vagrant/machines/work/virtualbox/private_key
PasswordAuthentication no
CONFIGEOF
echo '192.168.50.4 workstation01' >> /etc/hosts
echo '192.168.50.5 server01' >> /etc/hosts
After this, everything magicaliciously works.
--
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/dcb2a9ed-dbe5-4b15-b6a6-430149ad0434%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.