Use the only keyword, see https://www.packer.io/docs/templates/provisioners.html#run-on-specific-builds
On Aug 2, 2017 5:29 PM, "Lorena Lobato" <[email protected]> wrote: > Hi all, > > I'm curious, would it be possible to have in the same JSON template two > different builders: one for OpenStack and one for Docker? I think so, but > can we have different provisioners for each one? I would like OpenStack for > a specific operative system and Docker for another one. > > Then, how packer make the distinction between which provisioner is for > which builder? Is there any particular keyword? > > Thanks in advance > > Cheers > Lorena > > -- > 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/ac548eb7-0d74-4f63-9d9d-f20affe80c99%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/ac548eb7-0d74-4f63-9d9d-f20affe80c99%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/CALz9Rt86dPYe9vp0Xt5_WWJ9YAMVvdSPvbZuqmFkhXwUC5ZbwA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
