temporary_key_pair_name Applicability

24 views
Skip to first unread message

Lesley Kimmel

unread,
Apr 1, 2020, 10:15:16 PM4/1/20
to Packer
I noticed that this SSH communicator option is available for several builders (based on the Packer docs). Specifically, I am using the vsphere-iso builder. I was playing with this option but it doesn't seem to do anything. When I search about it, it is generally in the context of Amazon builders. Is this option even applicable to the VMware builders? If so, how does it work?

Rickard von Essen

unread,
Apr 2, 2020, 3:23:10 AM4/2/20
to packe...@googlegroups.com
It's not applicable. It's just for builders where ssh public keys are served by the API to instances to that will be added by cloud-init (or something similar) will automatically add them to a authorized_keys file. 

On Thu, Apr 2, 2020, 04:15 Lesley Kimmel <lesley....@gmail.com> wrote:
I noticed that this SSH communicator option is available for several builders (based on the Packer docs). Specifically, I am using the vsphere-iso builder. I was playing with this option but it doesn't seem to do anything. When I search about it, it is generally in the context of Amazon builders. Is this option even applicable to the VMware builders? If so, how does it work?

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/464b36a7-6d64-4227-86c0-4fb24c086e08%40googlegroups.com.

Jason Beranek

unread,
Apr 2, 2020, 7:39:11 AM4/2/20
to packe...@googlegroups.com
Rickard,

Probably worth a documentation update to capture the behavior/limitations.  I looked at the code, since I thought this was something that maybe used to work with the Virtualbox builders, and it looks like that code even generates the key pairs that it probably never uses.

V/r,

Jason A. Beranek

Rickard von Essen

unread,
Apr 2, 2020, 1:16:24 PM4/2/20
to packe...@googlegroups.com
Actually this functionality has been extended a bit and it supports VirtualBox now at least. See https://packer.io/docs/builders/virtualbox-iso.html#ssh-key-pair-automation

Megan Marsh

unread,
Apr 2, 2020, 2:22:54 PM4/2/20
to packe...@googlegroups.com
We are aware that the documentation is wrong here. Sorry :( The issue is that the docs are autogenerated, so they're showing up even for builders where specific options aren't relevant. We're working on fixing them so that builders which don't use certain communicator features won't show them as though they're available. 

Jason Beranek

unread,
Apr 2, 2020, 10:00:48 PM4/2/20
to packe...@googlegroups.com
To be clear, I didn’t mean it as a criticism, and appreciate the plans to clean up the docs. I was thinking without considering the challenges of things being auto generated that cleaning up the docs could be a good starter task for external contributors. 

-Jason


Reply all
Reply to author
Forward
0 new messages