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 <[email protected]> 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/960f1706-8ad9-40cc-a2bd-29e58c3e3a33%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/960f1706-8ad9-40cc-a2bd-29e58c3e3a33%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAGPV1uqxsR3wByuA9cE9R1vne4nf2uqpEQg2ZhFJiDfaNYjprA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
