Packer vSphere - Pushing a VM Template to Content Library

Relatively new to Packer here.
I have everything working as I would like: building VM templates on a Dev vCenter. The final part of the puzzle is get Packer to publish the VM Template to a local Content Library hosted on a different vCenter (Master vCenter).

Options:

  1. As I understand it, the simplest solution would be to build on the Master vCenter.
  2. Use script to copy the template from Dev to Master. If anyone has done this, I’d love to know how.
  3. Anything else?

FYI - I am very experienced with vSphere automation (PowerCli & REST)

Why not use the Content Library on Dev + Publish and subscribe from others Vcenter ?

1 Like