hi all! I'm building a new Packer provisioner plugin, and I need access to the VM's SSH connection *settings* (I'm invoking a program that does SSH itself). I can't however for the life figure out how to get to that info :( Anybody an idea?
--
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/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/e54cf12a-0158-4318-a3f5-128e65140e23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Actually it's not possible. The communicator hides this information and also support a more sofisticated setup than just ssh user@host:port.
I recommend that you look at how the ansible (remote) provisioner tackles this by running it's own ssh proxy. This required alot of implementation by the author and might be a bit difficult to mimic. Or if you are lucky you can just duplicate that code.
/ Rickard
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0eyPyCQTw9rTyXYG2%2BVvvamd%2BxF8moH3iEw6yUN1tpuqmg%40mail.gmail.com.