Importing provisioners from other hcl file into build stanza

Hi, I have multiple sources (digitalocean and vsphere). I want to apply the exact same provisioners during the build.
Is there a way to import provisioners defined in another hcl file into the build stanza so that I do not have to repeat the provisioners for each source?

Thanks Roland

For example something like that:

build {
  sources = [
    "source.digitalocean.buildserver1"]

  import "./myprovisioners.pkr.hcl"
...

Did you ever find an example?

No. But I did not search for it since January 2021. Eight month later (August) there might be a solution now.

This isn’t currently possible but it is something we do want to implement some time after the Packer 2.0 release.