Packer Cloud neutral Solution

16 views
Skip to first unread message

Nitin Rao

unread,
Apr 15, 2019, 10:53:46 AM4/15/19
to Packer
Is there a way I can make packer builders and provisioners file separately ,so that I can re-use the provisioners file for any builder? Would be great if one can give any solution to make the script cloud-neutral.

Megan Marsh

unread,
Apr 15, 2019, 1:22:10 PM4/15/19
to packe...@googlegroups.com
Not without some pre-processing on your end. What we do for regression tests is store the json blobs for each provisioner/builder independently and then use a python script to combine them into one json file for each build.

This feature may end up coming when we integrate HCL2 later this year, but I make no promises :)

On Mon, Apr 15, 2019 at 7:53 AM Nitin Rao <dnr...@gmail.com> wrote:
Is there a way I can make packer builders and provisioners file separately ,so that I can re-use the provisioners file for any builder? Would be great if one can give any solution to make the script cloud-neutral.

--
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/960f1706-8ad9-40cc-a2bd-29e58c3e3a33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nitin Rao

unread,
Apr 24, 2019, 9:12:54 AM4/24/19
to Packer
Thanks so much Megan! Hope to see the feature soon :)


On Monday, 15 April 2019 22:52:10 UTC+5:30, Megan Marsh wrote:
Not without some pre-processing on your end. What we do for regression tests is store the json blobs for each provisioner/builder independently and then use a python script to combine them into one json file for each build.

This feature may end up coming when we integrate HCL2 later this year, but I make no promises :)

On Mon, Apr 15, 2019 at 7:53 AM Nitin Rao <dnr...@gmail.com> wrote:
Is there a way I can make packer builders and provisioners file separately ,so that I can re-use the provisioners file for any builder? Would be great if one can give any solution to make the script cloud-neutral.

--
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 packe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages