Custom Communicator

21 views
Skip to first unread message

Nathan Mische

unread,
May 29, 2020, 5:26:44 PM5/29/20
to Packer
Hi,

We are developing a custom builder and I was wondering if it is possible to package a custom communicator in with the builder plugin? I see some other built in builders like docker and hyperone include custom communicators, I just wasn't sure if this could be done with a builder plugin.

Thanks,
-Nathan

Megan Marsh

unread,
Jun 2, 2020, 4:36:40 PM6/2/20
to packe...@googlegroups.com
Yes, as long as the builder satisfies the builder interface, and the communicator satisfies the communicator interface, then you're good to go. You'll need to bundle the communicator in with the builder plugin, since there's no way to independently serve a communicator. Your custom communicator won't be able to used with built-in builders, just your custom one where it's bundled. But I believe it should work with the built-in provisioners as long as it implements all of the communicator methods.

--
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/hashicorp/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/44b4d387-4709-446d-9ae9-f3a301bff561%40googlegroups.com.

Nathan Mische

unread,
Jun 3, 2020, 8:13:35 AM6/3/20
to packe...@googlegroups.com
Thanks Megan, I appreciate the confirmation. I'll be sure to follow up if we run into any issues.

Reply all
Reply to author
Forward
0 new messages