Re: [packer] Packer custom plugin: How to retrieve connection information?

2016-09-15 Thread Rickard von Essen
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

On Sep 15, 2016 14:49, "Alvaro Miranda Aguilera"  wrote:

> Hello,
>
> Maybe you can use this as example?
>
> https://github.com/mitchellh/packer/blob/8040317f7747eaee5b4ec7cad78370
> 0a58266fdb/packer/plugin/provisioner_test.go#L18-L26
>
> Alvaro
>
> On Thu, Sep 15, 2016 at 2:14 PM, Ronald van Zantvoort  > wrote:
>
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/packer-tool/e54cf12a-0158-4318-a3f5-128e65140e23%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Alvaro
> (+31)103400555
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/CAHqq0eyPyCQTw9rTyXYG2%2BVvvamd%2BxF8moH3iEw6yUN1tpuqmg%
> 40mail.gmail.com
> 
> .
> 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/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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt8d6A7NE3rtd4kMxw85%3DaR3qgS_73QFY7z4Z6qUaZ1Daw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[packer] Packer custom plugin: How to retrieve connection information?

2016-09-15 Thread Ronald van Zantvoort
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+unsubscr...@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.