-- 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": [
...
]
}
]