As is today the builders can be run in parallel, but provisioner and post-provisioner runs in sequence.
On Wed, Oct 25, 2017 at 8:06 PM, John C <[email protected]> wrote: > -- Basically I'm using the vsphere post-processor to upload the template > to a remote destination, and then using a shell-local post-processor that > converts the VM to a template on the remote destination > -- I'm doing this copy/convert to 4 different locations at this time > -- They all run successfully, but serially such that it waits until the > task is done before moving on to the next one ... and depending on the > remote destination, it can take hours to complete > -- The documentation talks about a 'sequence definition' that puts an > additional set of brackets around tasks in the post-processors section, but > doesn't indicate if that means parallel or not. Also a previous post noted > a user using these additional brackets to attempt running tasks in > parallel, but it still didn't work that way ... and the reply was to remove > them, which I'm doing and that doesn't seem to work either. > > Code below (cleaned up for easier reading / security reasons) ... > ==================================================== > "post-processors": [ > { > "type": "vsphere", # Copy to destination 1 > ... > }, > { > "type": "shell-local", #Make VM a template in destination 1 > "inline": "bundle exec rake mark_as_template", > "environment_vars": [ > ... > ] > }, > { > "type": "vsphere", # Copy to destination 2 > ... > }, > { > "type": "shell-local", #Make VM a template in destination 2 > "inline": "bundle exec rake mark_as_template", > "environment_vars": [ > ... > ] > }, > { > "type": "vsphere", # Copy to destination 3 > ... > }, > { > "type": "shell-local", #Make VM a template in destination 3 > "inline": "bundle exec rake mark_as_template", > "environment_vars": [ > ... > ] > }, > { > "type": "vsphere", # Copy to destination 4 > ... > }, > { > "type": "shell-local", #Make VM a template in destination 4 > "inline": "bundle exec rake mark_as_template", > "environment_vars": [ > ... > ] > } > ] > > > -- > 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/d9865e5b-9381-411c-a1f6-db57557ba39e%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/d9865e5b-9381-411c-a1f6-db57557ba39e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Alvaro -- 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/CAHqq0exnwyFxF1Z4t8NEC-mypsMuFC-S8dsrBfNsLRF5WWsvUw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
