Data Sharing between Provisioners

18 views
Skip to first unread message

Udbhav

unread,
Jul 2, 2019, 4:19:46 PM7/2/19
to Packer
Hi,

I would like to do the following using Packer provisioners - 
[Provisioner 1]. Download some certificates from Key Vault (using shell-local on local machine)
[Provisioner 2]. Install Certificates downloaded above to install (using WinRM)

I can only download certificates on local machine. Image will not be connected to the domain.

Is there a way to share the data between two provisioners? I wanted to keep certificates in memory because of security reasons.

Thanks
Udbhav

Megan Marsh

unread,
Jul 2, 2019, 5:12:33 PM7/2/19
to packe...@googlegroups.com
Currently, there is no way to share data between provisioners in this way.

Udbhav

unread,
Jul 3, 2019, 3:55:53 PM7/3/19
to packe...@googlegroups.com
Thanks Megan for answering.

In interest of other people, To resolve this I have finally written a small provisioner which takes the certificate details, downloads it and then install it on remote machine. 

Regards,
Udbhav


On Tue, Jul 2, 2019 at 2:12 PM Megan Marsh <megan....@gmail.com> wrote:
Currently, there is no way to share data between provisioners in this way.

--
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/CAGPV1uqwONRyXy1iaddC644LTJE21YszXO6FEqSiqp4dtBkYrw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages